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