-->
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 for composite-element
PostPosted: Tue Nov 30, 2004 10:53 am 
Newbie

Joined: Tue Nov 30, 2004 10:39 am
Posts: 10
is there a possibility to apply optimistic lock strategy for associated tables which are declared in a set of the class mapping inside a composite-element?
I have the following mapping:
Code:
<class name="A" table="SOMETABLE">
...
<set table="OTHERTABLE" ...>
    <key .../>
    <composite-element class="MyClass">
        ...
    </composite-element>
</set>
</class>


optimistic-lock in the class element is fine but I would need this feature also in a composite -element, for the OTHERTABLE.

Any Help is appreciated

Thanks,
Alex.

I use Hibernate version:2.1.7


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 30, 2004 11:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well, map MyClass as a proper object.


Top
 Profile  
 
 Post subject: Optimistic locking for composite-element
PostPosted: Tue Apr 17, 2007 8:22 pm 
Newbie

Joined: Sun Apr 10, 2005 1:35 pm
Posts: 3
I'm using Hibernate 3.2 and have the same issue. My composite-element maps to a table which has a VERSION_ID column for optimistic-locking purposes.

I'm not clear on your reply. Are you saying, it's not possible to do with an composite-element?

Does anyone have an example of how to create a mapping file for this case?

Mark


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.