IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes Do My Model Objects need to be serialized Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Do My Model Objects need to be serialized" Watch "Do My Model Objects need to be serialized" New topic
Author

Do My Model Objects need to be serialized

aadhar sharma
Ranch Hand

Joined: Oct 09, 2006
Posts: 38
Should the model objects implement the Serializable Interface

if yes why.

Thanks and Regards

Aadhar Sharma


Thanks and Regards
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: Do My Model Objects need to be serialized
 
Threads others viewed
A few questions on Struts best practices
WA #1.....word association
action objects
Pass data to JSP page
Business Objects vs Model
developer file tools