-->
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: Hibernate needs to only insert No update
PostPosted: Thu Aug 18, 2005 1:14 pm 
Newbie

Joined: Thu Aug 18, 2005 12:43 pm
Posts: 1
I have come to maintainance of a J2EE struts based project using Hibernate 2.0. Now the clients wants no Historical data to be changed so each time they change a detail we should not update the original record but create a new record associated with that case . is it easy to specify to hibernate that DO NOT UPDATE ONLY INSERT for the specific tables .
Suggestions and Comments
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 1:59 pm 
Beginner
Beginner

Joined: Wed Sep 03, 2003 9:31 am
Posts: 26
If I understood correctly, you can do this by using session.save() instead of session.saveOrUpdate().


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.