5 Replies Latest reply on Sep 30, 2010 11:44 AM by lvdberg

    Version annotation on getter not working in Seam app

    mlindhout.mlindhout.jointeffort.nl

      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, 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?