Package org.hibernate

Class UnresolvableObjectException

    • Constructor Detail

      • UnresolvableObjectException

        public UnresolvableObjectException​(Serializable identifier,
                                           String entityName)
        Constructs an UnresolvableObjectException using the specified information.
        Parameters:
        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)
    • Method Detail

      • 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.
        Parameters:
        entity - The entity to check for nullness
        identifier - The identifier of the entity
        entityName - The name of the entity
        Throws:
        UnresolvableObjectException - Thrown if entity is null
      • getEntityName

        public String getEntityName()