Package org.hibernate
Class NonUniqueObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hibernate.HibernateException
org.hibernate.NonUniqueObjectException
- All Implemented Interfaces:
Serializable
This exception is thrown when an operation would
break session-scoped identity. This occurs if the
user tries to associate two different instances of
the same Java class with a particular identifier,
in the scope of a single Session.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNonUniqueObjectException(Serializable id, String clazz) NonUniqueObjectException(String message, Serializable id, String clazz) -
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
-
NonUniqueObjectException
-
NonUniqueObjectException
-
-
Method Details
-
getIdentifier
-
getMessage
- Overrides:
getMessagein classThrowable
-
getEntityName
-