OptimisticLockException « Update « JPA Q&A





1. Hibernate: merge more than once causes OptimisticLockException    coderanch.com

Hi all, I am using Hibernate 3.2 with JBoss 4.2.3. In our application we have to merge a detached entity multiple times. The entity is created and persisted in a business module; and in later stages it is modified and the update is persisted in various business modules. Every business module has a new transaction scope and so the entity becomes ...

2.  org.apache.openjpa.persistence.OptimisticLockException    coderanch.com

Hi All, I am using Open Jpa for the DB layer of my application, the database being DB2. I have a bean which saves data to a table. This works perfectly fine on my environment but when I deploy the very same EAR on a server machine, it gives me the optimistic lock exception. I have tried restarting the DB but ...

3. merge more than once causes OptimisticLockException    forum.hibernate.org

Hi, I am using Hibernate 3.2 with JBoss 4.2.3. In our application we have to merge a detached entity multiple times. The entity is created and persisted in a business module; and in later stages it is modified and the update is persisted in various business modules. Every business module has a new transaction scope and so the entity becomes detached ...