-->
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: usage of optmistic-lock in collection mappings
PostPosted: Mon Mar 13, 2006 10:12 am 
Newbie

Joined: Mon Mar 13, 2006 9:55 am
Posts: 2
Location: Kortrijk
NHibernate version: 1.02


In (java) Hibernate one can specify a 'optimistic-lock' attribute for a persistent collection
i.e.
Code:
<map
  name = "items"
  ...
  optimistic-lock="true|false"

</map>

This attribute allows you to specify if changes to the state of the collection have to result in increment of the owning entity's version.

For some of my one to many associations, I don't want this increment to happen so I want to be able to set this attribute to 'false'

Is this supported in NHibernate ?
I'm getting the message: The 'optimistic-lock' attribute is not declared

Thanks in advance


[/b]


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.