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
public class StaleObjectStateException extends StaleStateException
A specialized StaleStateException that carries information about the particular entity instance that was the source of the failure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StaleObjectStateException(String entityName, Object identifier)
Constructs a StaleObjectStateException using the supplied information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEntityName()
Object
getIdentifier()
String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getEntityName
public String getEntityName()
-
getIdentifier
public Object getIdentifier()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-