/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
 */
package org.hibernate.dialect.lock;

import org.hibernate.JDBCException;

Represents an error trying to apply a pessimistic LockingStrategy to an entity
Author:Steve Ebersole
/** * Represents an error trying to apply a pessimistic {@link LockingStrategy} to an entity * * @author Steve Ebersole */
public class PessimisticEntityLockException extends LockingStrategyException {
Constructs a PessimisticEntityLockException
Params:
  • entity – The entity we were trying to lock
  • message – Message explaining the condition
  • cause – The underlying cause
/** * Constructs a PessimisticEntityLockException * * @param entity The entity we were trying to lock * @param message Message explaining the condition * @param cause The underlying cause */
public PessimisticEntityLockException(Object entity, String message, JDBCException cause) { super( entity, message, cause ); } }