程序包 org.hibernate

类 WrongClassException

  • 所有已实现的接口:
    Serializable

    public class WrongClassException
    extends HibernateException
    Thrown when loading an entity (by identifier) results in a value that cannot be treated as the subclass type requested by the caller.
    作者:
    Gavin King
    另请参阅:
    序列化表格
    • 构造器详细资料

      • WrongClassException

        public WrongClassException​(String message,
                                   Serializable identifier,
                                   String entityName)
        Constructs a WrongClassException using the supplied information.
        参数:
        message - A message explaining the exception condition
        identifier - The identifier of the entity
        entityName - The entity-type requested
    • 方法详细资料

      • getEntityName

        public String getEntityName()