Package org.hibernate
Class StaleObjectStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.StaleStateException
org.hibernate.StaleObjectStateException
- All Implemented Interfaces:
Serializable
A specialized
StaleStateException that carries information about
the particular entity instance that was the source of the failure.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStaleObjectStateException(String entityName, Object identifier) Constructs aStaleObjectStateExceptionusing the supplied information.StaleObjectStateException(String entityName, Object identifier, String message) Constructs aStaleObjectStateExceptionusing the supplied information.StaleObjectStateException(String entityName, Object identifier, StaleStateException cause) Constructs aStaleObjectStateExceptionusing the supplied information and cause. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StaleObjectStateException
Constructs aStaleObjectStateExceptionusing the supplied information.- Parameters:
entityName- The name of the entityidentifier- The identifier of the entity
-
StaleObjectStateException
Constructs aStaleObjectStateExceptionusing the supplied information.- Parameters:
entityName- The name of the entityidentifier- The identifier of the entity
-
StaleObjectStateException
Constructs aStaleObjectStateExceptionusing the supplied information and cause.- Parameters:
entityName- The name of the entityidentifier- The identifier of the entity
-
-
Method Details
-
getEntityName
-
getIdentifier
-
getMessage
- Overrides:
getMessagein classThrowable
-