-->
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.  [ 1 post ] 
Author Message
 Post subject: Expiring and creating a row instead of updating it...
PostPosted: Wed Jul 13, 2005 11:40 am 
Newbie

Joined: Thu Jun 30, 2005 10:35 am
Posts: 13
I was wondering if there is a way to let Hibernate know that when any of my mapped objects change state, that it should expire the old db row and create a new one rather than updating the current row. In our database model we never use updates on any of the tables, but instead, we create a new row with the new data (even if only one value is changed) and expire the old row by just changing the value of a boolean column.

Is there a way to do this without creating a separate class to work with the Hibernate IDE or creating interceptor classes? Maybe in the mapping files?

Thanks in advance for any help!


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

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.