-->
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: optimistic-lock problem
PostPosted: Tue Apr 07, 2009 9:28 am 
Hi all,

I got a problem with optimistic-lock.
I have only one entity, and I'm using
optimistic-lock="all" and dynamic-update="true" (this is necessary when I use optimistic-lock="all").

So, when I INSERT a new entity, NHibernate try to execute an UPDATE, on another register in my table. And gives me an error.

If I remove optimistic-lock="all" and dynamic-update="true" everything works fine.

Does anyone know why?

I need a lock in my application.

Cheers


Top
  
 
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.