-->
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: Difference between optimistic-lock for dirty and all
PostPosted: Thu Jun 17, 2004 6:52 pm 
Newbie

Joined: Tue Oct 14, 2003 2:07 pm
Posts: 10
Location: Berkeley, CA
Hibernate docs are curiously brief on this subject so any clarification will be appreciated.

Does optimistic-lock="dirty" mean the user is allowed to update a stale object as long as the columns the user is trying to change haven't been changed by the prior update?

If not, is there a way to enforce this type of optimistic lock? Majority of our entities are constantly being updated by various automatic processes and as long as the columns don't collide, the updates are allowed.

Thanks much,
hster


Top
 Profile  
 
 Post subject: dirty works as expected
PostPosted: Thu Jun 17, 2004 7:58 pm 
Newbie

Joined: Tue Oct 14, 2003 2:07 pm
Posts: 10
Location: Berkeley, CA
Nevermind. Dirty works exactly as I expected. I only posed the above simplistic question as I was having trouble with a special usertype which appears to always trigger the StaleObjectStateException.


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.