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

serialVersionUID + jpa?

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I understand the serialVersionUID is used in order to manage versions of jpa entities. Am I really required to change the serialVersionUID if I change a database table (structure and data) and the entity class accordingly?
In what circumstances am I required to change the serialVersionUID in the context of JPA?
Regards,
Julien.
 
xsunil kumar
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I donot think so it is required to change...
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
serialVersionUID has nothing to do with JPA, it is for object serialization. If you serialize your JPA objects, then you may need to worry about it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic