程序包 org.hibernate

类 UnresolvableObjectException

    • 构造器详细资料

      • UnresolvableObjectException

        public UnresolvableObjectException​(Serializable identifier,
                                           String entityName)
        Constructs an UnresolvableObjectException using the specified information.
        参数:
        identifier - The identifier of the entity which could not be resolved
        entityName - The name of the entity which could not be resolved
      • UnresolvableObjectException

        protected UnresolvableObjectException​(String message,
                                              Serializable identifier,
                                              String clazz)
    • 方法详细资料

      • throwIfNull

        public static void throwIfNull​(Object entity,
                                       Serializable identifier,
                                       String entityName)
                                throws UnresolvableObjectException
        Factory method for building and throwing an UnresolvableObjectException if the entity is null.
        参数:
        entity - The entity to check for nullness
        identifier - The identifier of the entity
        entityName - The name of the entity
        抛出:
        UnresolvableObjectException - Thrown if entity is null
      • getEntityName

        public String getEntityName()