-->
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.  [ 3 posts ] 
Author Message
 Post subject: optimistic-lock dependency on dynamic-update?
PostPosted: Sat Feb 28, 2004 4:56 pm 
Newbie

Joined: Sun Nov 30, 2003 7:24 am
Posts: 11
The docs are not completely clear to me regarding the dependency between dynamic-update and optimistic-lock attributes in Hibernate 2.1.1. It says

Quote:
If you enable dynamic-update, you will have a choice of optimistic locking strategies
.

Now, does it mean that if I use dynamic-update="false" then...:

1. ...Hibernate does no optimistic locking at all
2. ...non-default values for optimistic-lock ("all" and "dirty") cannot be used, but the default value "version" is still implied and enforced

I'd really love it if the correct answer would be 2.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2004 6:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
version and timestamp do work without dynamic-update.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2004 6:22 pm 
Newbie

Joined: Sun Nov 30, 2003 7:24 am
Posts: 11
Cool - thx for the quick reply. It seemed to be the intuitive behavior, but the docs really weren't crystal clear about it.

(Well, maybe you just spoiled me with generally crystal clear docs, so I got high expectations...)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.