• 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: 17309
11
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!