public class StaleStateException extends HibernateException
Thrown when a version number or timestamp check failed, indicating that the Session contained stale data (when using long transactions with versioning). Also occurs if we try delete or update a row that does not exist.
Note that this exception often indicates that the user failed to specify the correct
unsaved-value strategy for an entity
| Constructor and Description |
|---|
StaleStateException(String message)
Constructs a StaleStateException using the supplied message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StaleStateException(String message)
Constructs a StaleStateException using the supplied message.
message - The message explaining the exception conditionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.