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

compoistePK class and Serializable

 
Charu Sama
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One simple question - Why compositePK class needs to implement Serializale interface?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a question about Hibernate?
 
Charu Sama
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but even CMP/JPA also need this if I am correct.
But, this is specific to Hibernet.
 
Charu Sama
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea ??
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic