ObjectDB ObjectDB

Internal Website Search

1-10 of 31 resultsRefresh
139

Remove an entity which attributes were changed - OptimisticLockException

are local in memory and will fail with OptimisticLockException if user 1 is committing or flushing ... , which is increased on every update. An OptimisticLockException is thrown when that version number
134

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
116

OptimisticLockException()

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

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
116

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
116

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
116

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
116

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
104

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. Constructs
80

getEntity()

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support