Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do My Model Objects need to be serialized

 
aadhar sharma
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should the model objects implement the Serializable Interface

if yes why.

Thanks and Regards

Aadhar Sharma
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you ever need to transport them to another JVM, then you have to make the Serializable. It is also recommended to implement the equals and hashcode methods.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic