About OptimisticLockException
Locking in JPA
Explains how to use optimistic locking and pessimistic locking in JPA.... object being updated. The transaction fails and an OptimisticLockException javax.persistence.OptimisticLockException JPA exception Thrown by the persistence ...
JPA Exceptions
Reference (JavaDoc) of the JPA exception classes, including PersistenceException, EntityExistsException, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException.... javax.persistence.OptimisticLockException ... javax.persistence.OptimisticLockException javax.persistence.PessimisticLockException ...
javax.persistence.OptimisticLockException
Thrown by the persistence provider when an optimistic locking conflict occurs.(Exception of JPA)
OptimisticLockException()
Constructs a new OptimisticLockException exception with null as its detail message.(Constructor of javax.persistence.OptimisticLockException)
OptimisticLockException(cause)
Constructs a new OptimisticLockException exception with the specified cause.(Constructor of javax.persistence.OptimisticLockException)
OptimisticLockException(entity)
Constructs a new OptimisticLockException exception with the specified entity.(Constructor of javax.persistence.OptimisticLockException)
OptimisticLockException(message)
Constructs a new OptimisticLockException exception with the specified detail message.(Constructor of javax.persistence.OptimisticLockException)
OptimisticLockException(message, cause)
Constructs a new OptimisticLockException exception with the specified detail message and cause.(Constructor of javax.persistence.OptimisticLockException)
OptimisticLockException(message, cause, entity)
Constructs a new OptimisticLockException exception with the specified detail message, cause, and entity.(Constructor of javax.persistence.OptimisticLockException)
OptimisticLockException
Ran into this error for the first time (after many years of using odb): Caused by: com.objectdb.o._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 (object has version 2 instead of 3) Also the first time I'm using odb in C/S mode rather than embedded. Also have the Explorer open Questions: a) what is it about? ... years of using odb): Caused by: com.objectdb.o._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 ...