Class EntityTools
java.lang.Object
org.hibernate.envers.internal.tools.EntityTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanentitiesEqual(SessionImplementor session, String entityName, Object obj1, Object obj2) static ClassgetEntityClass(SessionImplementor sessionImplementor, String entityName) static ObjectgetIdentifier(SessionImplementor session, String entityName, Object obj) static <T> Class<T> getTargetClassIfProxied(Class<T> clazz) static ObjectgetTargetFromProxy(SessionFactoryImplementor sessionFactoryImplementor, LazyInitializer lazyInitializer)
-
Constructor Details
-
EntityTools
public EntityTools()
-
-
Method Details
-
entitiesEqual
public static boolean entitiesEqual(SessionImplementor session, String entityName, Object obj1, Object obj2) -
getIdentifier
-
getTargetFromProxy
public static Object getTargetFromProxy(SessionFactoryImplementor sessionFactoryImplementor, LazyInitializer lazyInitializer) -
getTargetClassIfProxied
- 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
nullreference is passed, method returnsnull.
-
getEntityClass
- Returns:
- Java class mapped to specified entity name.
-