Class EntityTools

  • public abstract class EntityTools
    extends Object
    • Constructor Detail

      • EntityTools

        public EntityTools()
    • Method Detail

      • getTargetClassIfProxied

        public static <T> Class<T> getTargetClassIfProxied​(Class<T> clazz)
        Type Parameters:
        T - Class type.
        clazz - Class wrapped with a proxy or not.
        Returns target class in case it has been wrapped with a proxy. If null reference is passed, method returns null.
      • getEntityClass

        public static Class getEntityClass​(SessionImplementor sessionImplementor,
                                           String entityName)
        Java class mapped to specified entity name.