Package de.xima.fc.utils
Class HibernateUtils
java.lang.Object
de.xima.fc.utils.HibernateUtils
Utility class for dealing with
Hibernate objects- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic final voidinitialize(Object proxy) static final <T> voidinitialize(List<T> objects, Class<T> clazz) static final <T> voidinitialize(T object, Class<T> clazz) static final <T> List<T>unproxyList(List<T> objects, Class<T> clazz) Unproxies any of the given objects that areHibernateProxys and returns all objectsstatic final <T> TunproxyObject(T object, Class<T> clazz) Unproxies the object if it is aHibernateProxyand returns the unproxied objectstatic final <T> Set<T>unproxySet(Set<T> objects, Class<T> clazz)
-
Method Details
-
unproxyList
Unproxies any of the given objects that areHibernateProxys and returns all objects- Type Parameters:
T- type of the objects- Parameters:
objects- to unproxyclazz- of the objects- Returns:
Listof all the objects with all the objects unproxied
-
unproxySet
-
unproxyObject
Unproxies the object if it is aHibernateProxyand returns the unproxied object- Type Parameters:
T- type of the objects- Parameters:
object- to unproxyclazz- of the object- Returns:
- unproxied value or the original if the object is no
HibernateProxy
-
initialize
-
initialize
-
initialize
-