How to disable the lock system of JPA?
I'm using OpenJPA and I have a lock problem. I already understand what's an OptimisticLockException and when it's thrown. But how can I deal with it ? Below*, you can find a small paragraph about the optimistic lock exceptions. In a nutshell, how I can totally disable the lock manager ? In my persistent.xml, I have the following xml code but it does not work. Why ? ... <properties> <property name="openjpa.LockManager" value="none" /> </properties> ... *According to the wikibooks about the Java Persistent : Handling optimistic lock exceptions Unfortunately programmers can frequently be too