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