Top Description Fields Constructors Methods
org.hibernate

public Class WrongClassException

extends HibernateException
Class Inheritance
Imports
java.io.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.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final String
private final Serializable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public Serializable
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Field Detail

entityNameback to summary
private final String entityName
identifierback to summary
private final Serializable identifier

Constructor Detail

WrongClassExceptionback to summary
public WrongClassException(String msg, Serializable identifier, String clazz)

Method Detail

getEntityNameback to summary
public String getEntityName()
getIdentifierback to summary
public Serializable getIdentifier()
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).