All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.StaleStateException Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * 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 .
 */
package org.hibernate;

/**
 * Thrown when a version number or timestamp check failed, indicating that
 * the {@link Session} contained stale data (when using long transactions
 * with versioning). Also occurs if we try to delete or update a row that
 * does not exist.
 * 

* Note that this exception sometimes indicates that the user failed to * specify the correct {@code unsaved-value} strategy for an entity. * * @author Gavin King */ public class StaleStateException extends HibernateException { /** * Constructs a {@code StaleStateException} using the supplied message. * * @param message The message explaining the exception condition */ public StaleStateException(String message) { super( message ); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy