Class LockingStrategyException

All Implemented Interfaces:
Serializable

@SPI({USE,IMPLEMENT}) public abstract class LockingStrategyException extends HibernateException
An error applying a LockingStrategy to an entity.
Since:
8.0
See Also:
  • Constructor Details

    • LockingStrategyException

      @SPI(IMPLEMENT) public LockingStrategyException(Object entity, String message)
      Creates a locking failure for the given entity and message.
    • LockingStrategyException

      @SPI(IMPLEMENT) public LockingStrategyException(Object entity, String message, Throwable cause)
      Creates a locking failure for the given entity, message, and underlying cause.
  • Method Details

    • getEntity

      public Object getEntity()
      The entity for which locking failed.