-->
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: Version annotation on getter not working in Seam app
PostPosted: Thu Sep 30, 2010 9:22 am 
Newbie

Joined: Mon Mar 17, 2008 11:51 am
Posts: 3
Hi all,

I have a @MappedSupperClass entity with a @Version on the getter. However, when I make changes to entities that extend this baseentity, the version is not updated. Even worse, when I edit the same entity in two browsers simultaneously, I don't get an OptimisticLockException.

I tried to move the @Version to the field and remove the getter and setter, but then a lot of unittest fail on getEntityManager().flush() with the message 'Row was updated or deleted by another transaction' (in a unit test?).

Any ideas?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.