Internal Website Search

31-40 of 100 resultsRefresh

"Attempt to lock a non entity object" error

produces the error "Attempt to lock a non entity object" session.rollback ... () { try {     session.rollback(); . . . } //doCancelEdit ... > ... Rolling back a transaction - either by invocation of rollback or by a commit failure."

refresh(entity, lockMode)

> will be thrown if the database locking failure causes transaction-level rollback the rollback. Parameters

javax.persistence.LockTimeoutException

when an pessimistic locking conflict occurs that does not result in transaction rollback. This exception ... , will be not be marked for rollback. Since:

lock(entity, lockMode, properties)

>PessimisticLockException will be thrown if the database locking failure causes transaction-level rollback rollback If a vendor-specific property or hint

refresh(entity, lockMode, properties)

if the database locking failure causes transaction-level rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback

find(entityClass, primaryKey, lockMode, properties)

-level rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback If a vendor-specific

lock(entity, lockMode)

rollback the LockTimeoutException will be thrown if the database locking failure causes only statement-level rollback

setRestoreValues(restoreValues)

for the RestoreValues property. If true , at rollback, fields of newly ... >false, at rollback, the values of fields of newly persistent instances are unchanged

find(entityClass, primaryKey, lockMode, properties)

will be thrown if the database locking failure causes transaction-level rollback rollback If a vendor-specific property or hint

setRestoreValues(restoreValues)

>) If true , at rollback, fields ... . If false, at rollback, the values of fields of newly persistent instances