public class

WrongClassException

extends HibernateException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.hibernate.HibernateException
           ↳ org.hibernate.WrongClassException

Class Overview

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.

Summary

Public Constructors
WrongClassException(String msg, Serializable identifier, String clazz)
Public Methods
String getEntityName()
Serializable getIdentifier()
String getMessage()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public WrongClassException (String msg, Serializable identifier, String clazz)

Public Methods

public String getEntityName ()

public Serializable getIdentifier ()

public String getMessage ()