• 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: 146
  • 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!