Package org.hibernate
Class StaleObjectStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.StaleStateException
-
- org.hibernate.StaleObjectStateException
-
- All Implemented Interfaces:
java.io.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(java.lang.String entityName, java.io.Serializable identifier)
Constructs a StaleObjectStateException using the supplied information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEntityName()
java.io.Serializable
getIdentifier()
java.lang.String
getMessage()
-
-
-
Constructor Detail
-
StaleObjectStateException
public StaleObjectStateException(java.lang.String entityName, java.io.Serializable identifier)
Constructs a StaleObjectStateException using the supplied information.- Parameters:
entityName
- The name of the entityidentifier
- The identifier of the entity
-
-