-->
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: hibernatedoclet and optimistic-lock
PostPosted: Tue Oct 05, 2004 7:20 pm 
Newbie

Joined: Wed Aug 25, 2004 11:16 pm
Posts: 12
Location: San Francisco, CA
I've been experimenting with optimistic locking, and I couldn't find a class level hibernatedoclet setting to enable the "optimistic-lock" feature. This was surprising because nearly all of the hibernate meta-data can be captured in xdoclet tags.

Is there a specific technical reason for this, or has no one yet spent the time to contribute a patch?

I would expect:

Code:
@hibernate.class optimistic-lock = "all|version|dirty|none"


The only tricky case I can think of if there is also a property flagged as a <version> indicator. In that case, the optimisitc-lock setting would be ignored, or forced to take on the value 'version'.

Thanks in advance,
Christian


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 9:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I check the 1.2.2 RC1 code and Its not implemented. All that is needed is a patch.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 08, 2004 7:51 pm 
Newbie

Joined: Wed Aug 25, 2004 11:16 pm
Posts: 12
Location: San Francisco, CA
I implemented this feature the other night.

Check out: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1104

You can find my patch there.

Christian


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.