public abstract class EntityTools extends Object
Constructor and Description |
---|
EntityTools() |
Modifier and Type | Method and Description |
---|---|
static boolean |
entitiesEqual(SessionImplementor session,
String entityName,
Object obj1,
Object obj2) |
static Class |
getEntityClass(SessionImplementor sessionImplementor,
Session session,
String entityName) |
static Object |
getIdentifier(SessionImplementor session,
String entityName,
Object obj) |
static <T> Class<T> |
getTargetClassIfProxied(Class<T> clazz) |
static Object |
getTargetFromProxy(SessionFactoryImplementor sessionFactoryImplementor,
HibernateProxy proxy) |
public static boolean entitiesEqual(SessionImplementor session, String entityName, Object obj1, Object obj2)
public static Object getIdentifier(SessionImplementor session, String entityName, Object obj)
public static Object getTargetFromProxy(SessionFactoryImplementor sessionFactoryImplementor, HibernateProxy proxy)
public static <T> Class<T> getTargetClassIfProxied(Class<T> clazz)
T
- Class type.clazz
- Class wrapped with a proxy or not.null
reference is passed,
method returns null
.public static Class getEntityClass(SessionImplementor sessionImplementor, Session session, String entityName)
Copyright © 2017 JBoss by Red Hat. All rights reserved.