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 aStaleObjectStateException
using the supplied information. -
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 aStaleObjectStateException
using the supplied information.- Parameters:
entityName
- The name of the entityidentifier
- The identifier of the entity
-
-
Method Details
-
getEntityName
-
getIdentifier
-
getMessage
- Overrides:
getMessage
in classThrowable
-