About OptimisticLockException

1-10 of 28Refresh
JPA Doc
103

OptimisticLockException()

Constructor javax.persistence.OptimisticLockException OptimisticLockException() Constructs a new OptimisticLockException exception with null as its detail message. Since: JPA 1.0
JPA Doc
103

OptimisticLockException(cause)

Constructor javax.persistence.OptimisticLockException OptimisticLockException(   Throwable cause ) Constructs a new OptimisticLockException exception with the specified cause. Parameters: cause - the cause. Since: JPA 1.0
JPA Doc
103

OptimisticLockException(entity)

Constructor javax.persistence.OptimisticLockException OptimisticLockException(   Object entity ) Constructs a new OptimisticLockException exception with the specified entity. Parameters: entity - the entity. Since: JPA 1.0
JPA Doc
103

OptimisticLockException(message)

Constructor javax.persistence.OptimisticLockException OptimisticLockException(   String message ) Constructs a new OptimisticLockException exception with the specified detail message. Parameters: message - the detail message. Since: JPA 1.0
JPA Doc
103

OptimisticLockException(message, cause)

Constructor javax.persistence.OptimisticLockException OptimisticLockException(   String message,   Throwable cause ) Constructs a new OptimisticLockException exception with the specified detail message and cause. Parameters: message - the detail message. cause - the cause. Since: JPA 1.0
JPA Doc
103

OptimisticLockException(message, cause, entity)

Constructor javax.persistence.OptimisticLockException OptimisticLockException(   String message,   Throwable cause,   Object entity ) Constructs a new OptimisticLockException exception with the specified detail message, cause, and entity. Parameters: message - the detail message. cause - the cause. entity - the entity. Since: JPA 1.0
JPA Doc
94

javax.persistence.OptimisticLockException

javax.persistence Exception OptimisticLockException java.lang.Object java.lang.Throwable ... .PersistenceException javax.persistence.OptimisticLockException Implemented ... ) OptimisticLockException() Constructs a new OptimisticLockException exception with null as its detail message
JPA Doc
72

getEntity()

Method javax.persistence.OptimisticLockException Object getEntity() Returns the entity that caused this exception. Returns: the entity. Since: JPA 1.0
Forum
24

Remove an entity which attributes were changed - OptimisticLockException

and will fail with OptimisticLockException if user 1 is committing or flushing the changes before user 2 ... , which is increased on every update. An OptimisticLockException is thrown when that version number indicates
Forum
24

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