org.hibernate
Class WrongClassException
- Nestable
public class WrongClassException
Thrown when Session.load() selects a row with
the given primary key (identifier value) but the row's
discriminator value specifies a subclass that is not
assignable to the class requested by the user.
getCause , getMessage , getMessage , getMessages , getThrowable , getThrowableCount , getThrowables , indexOfThrowable , indexOfThrowable , printPartialStackTrace , printStackTrace , printStackTrace , printStackTrace |
WrongClassException
public WrongClassException(String msg,
Serializable identifier,
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