-->
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: Timestamp and dirty Collection
PostPosted: Fri Apr 08, 2005 9:04 am 
Newbie

Joined: Wed Mar 16, 2005 5:26 am
Posts: 2
Hibernate version: 2.1.8

I have a unidirectional one-to-many association. Cascading: save-update.
Each table has a timestamp attribute. Now I add a new child object to the collection of the parent object.

How can I told Hibernate not to update the timestamp attribute of the parent when only a collection is dirty and no other changes are made in the parent object?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 9:59 am 
Beginner
Beginner

Joined: Thu Mar 24, 2005 5:21 pm
Posts: 21
I think you can achieve this by using the optimistic-lock attribute of the set element in Hibernate 3.
Don't believe this is possible in the 2.x versions though...
HTH
Satish


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.