org.hibernate
Class NonUniqueObjectException
- Nestable
public class NonUniqueObjectException
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.
getCause , getMessage , getMessage , getMessages , getThrowable , getThrowableCount , getThrowables , indexOfThrowable , indexOfThrowable , printPartialStackTrace , printStackTrace , printStackTrace , printStackTrace |
NonUniqueObjectException
public NonUniqueObjectException(Serializable id,
String clazz)
NonUniqueObjectException
public NonUniqueObjectException(String message,
Serializable id,
String clazz)
getEntityName
public String getEntityName()
getIdentifier
public Serializable getIdentifier()
getMessage
public String getMessage()
Returns the detail message string of this throwable. If it was
created with a null message, returns the following:
( cause==null ? null : cause.toString( ).
- getMessage in interface Nestable
- getMessage in interface NestableRuntimeException