-->
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: Basic hibernate question - Updates instead of inserting
PostPosted: Wed Feb 15, 2012 3:58 pm 
Newbie

Joined: Sat Aug 01, 2009 7:58 pm
Posts: 3
When i issue a persist command JPA/Hibernate seems to be updating the record instead of inserting a new one. What could be causing this?

Also, when i delete the rows from the database manually, Hibernate restores them. What causes this?

Thanks


Top
 Profile  
 
 Post subject: Re: Basic hibernate question - Updates instead of inserting
PostPosted: Wed Feb 15, 2012 4:32 pm 
Newbie

Joined: Sat Aug 01, 2009 7:58 pm
Posts: 3
Please ignore the first question as i found out that the test case i was running was truncating the data first. :(


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.