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