-->
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: Setting optimistic-lock for components
PostPosted: Thu Jun 26, 2008 3:59 am 
Newbie

Joined: Mon Mar 17, 2008 3:36 pm
Posts: 4
Hi all,

I have a class with a mapped component like this:

<class name="Person" table="Person">
...
<component name="Info" class="Info">
<set name="Addresses"
cascade="all-delete-orphan"
inverse="true"
optimistic-lock="false"
access="field.camelcase-underscore">
...
</set>
</component>
</class>
</hibernate-mapping>

I want to prevent that the version of the Person class is incremented when a change is made to the properties and collections of the component. I tried to set optimistic-lock="false" on the collection for example, but it didn't work.

I noticed in the docs that a component can have an optimistic-lock attribute, but the XSD doesn't seem to back this up:

http://www.hibernate.org/hib_docs/nhibe ... -component

I'm using version 1.2.1, but the latest 2.0 alpha doesn't seem to support this either. Is this by design? If not, should I create an entry in JIRA?

Thanks in advance,

Jan


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.