-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to update an ID value?
PostPosted: Thu Apr 13, 2006 12:27 pm 
Newbie

Joined: Sat Feb 18, 2006 1:15 pm
Posts: 3
It's maybe simple, but I just can't find answers here. How can I update an ID value. Do I need to remove the old object and make a fresh new one and save it to the database or I missed something here?


Top
 Profile  
 
 Post subject: Is this the answer?
PostPosted: Thu Apr 13, 2006 12:45 pm 
Newbie

Joined: Sat Feb 18, 2006 1:15 pm
Posts: 3
How can I change the identifier value of an existing instance (ie. the primary key)
It is part of the definition of a primary key that it is not only unique, but also constant throughout the life of the row. Hibernate does not, and should not, support changing identifier values.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.