aspose file tools
The moose likes Object Relational Mapping and the fly likes compoistePK class  and Serializable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "compoistePK class  and Serializable" Watch "compoistePK class  and Serializable" New topic
Author

compoistePK class and Serializable

Charu Sama
Greenhorn

Joined: Aug 03, 2006
Posts: 12
One simple question - Why compositePK class needs to implement Serializale interface?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Is this a question about Hibernate?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Charu Sama
Greenhorn

Joined: Aug 03, 2006
Posts: 12
Yes, but even CMP/JPA also need this if I am correct.
But, this is specific to Hibernet.
Charu Sama
Greenhorn

Joined: Aug 03, 2006
Posts: 12
Any idea ??
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

Same reason as why any Mapped object will need to be Serializable if you want to transport the object to the client or something in a different JVM.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: compoistePK class and Serializable
 
Threads others viewed
WA #1.....word association
Doubt about diagram class
Doubt about diagram class (realization)
can non-static inner class access any member
andrew has wii
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture