Package org.hibernate
Class WrongClassException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hibernate.HibernateException
org.hibernate.WrongClassException
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Constructor Summary
Constructors -
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
-
WrongClassException
-
-
Method Details
-
getIdentifier
-
getMessage
- Overrides:
getMessagein classThrowable
-
getEntityName
-