javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
Issue
- Performing entity updates in a non-clustered / non-level2-cache enabled system
-
Encountering OptimisticLock/StaleObjectState exceptions
... javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
... org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
Environment
- Red Hat JBoss Enterprise Application Platform(EAP)
- 6
- 7
- Hibernate
- 4
- 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.