Package org.hibernate.dialect.lock
Class OptimisticEntityLockException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.dialect.lock.LockingStrategyException
-
- org.hibernate.dialect.lock.OptimisticEntityLockException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
OptimisticLockException
public class OptimisticEntityLockException extends LockingStrategyException
Represents an error trying to apply an optimisticLockingStrategy
to an entity- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptimisticEntityLockException(java.lang.Object entity, java.lang.String message)
Constructs a OptimisticEntityLockExceptionOptimisticEntityLockException(java.lang.Object entity, java.lang.String message, java.lang.Throwable cause)
Constructs a OptimisticEntityLockException
-
Method Summary
-
Methods inherited from class org.hibernate.dialect.lock.LockingStrategyException
getEntity
-
-
-
-
Constructor Detail
-
OptimisticEntityLockException
public OptimisticEntityLockException(java.lang.Object entity, java.lang.String message)
Constructs a OptimisticEntityLockException- Parameters:
entity
- The entity we were trying to lockmessage
- Message explaining the condition
-
OptimisticEntityLockException
public OptimisticEntityLockException(java.lang.Object entity, java.lang.String message, java.lang.Throwable cause)
Constructs a OptimisticEntityLockException- Parameters:
entity
- The entity we were trying to lockmessage
- Message explaining the conditioncause
- The underlying cause
-
-