Class EntityTools

java.lang.Object
org.hibernate.envers.internal.tools.EntityTools

public abstract class EntityTools extends Object
  • Constructor Details

    • EntityTools

      public EntityTools()
  • Method Details

    • entitiesEqual

      public static boolean entitiesEqual(SessionImplementor session, String entityName, Object obj1, Object obj2)
    • getIdentifier

      public static Object getIdentifier(SessionImplementor session, String entityName, Object obj)
    • getTargetFromProxy

      public static Object getTargetFromProxy(SessionFactoryImplementor sessionFactoryImplementor, LazyInitializer lazyInitializer)
    • getTargetClassIfProxied

      public static <T> Class<T> getTargetClassIfProxied(Class<T> clazz)
      Type Parameters:
      T - Class type.
      Parameters:
      clazz - Class wrapped with a proxy or not.
      Returns:
      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)
      Returns:
      Java class mapped to specified entity name.