-->
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: Version field updating even if object not changed?
PostPosted: Fri Aug 10, 2007 5:53 pm 
Beginner
Beginner

Joined: Tue Mar 21, 2006 5:49 pm
Posts: 20
I have small problem... I have a main object with one-to-one mapping to "children" objects... If I change one of the children object and call save on my main object, the children is save with it's updates but the version field of my main object is also incremented.. And this causes problem with optimistic locking for other saves...

Is there any ways to save my main object and not update the version field for the main object when the main object has not been changed?


Regards,

BTJ

_________________
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"


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.