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 void
initialize
(Object proxy) static final <T> void
initialize
(List<T> objects, Class<T> clazz) static final <T> void
initialize
(T object, Class<T> clazz) static final <T> List<T>
unproxyList
(List<T> objects, Class<T> clazz) Unproxies any of the given objects that areHibernateProxy
s and returns all objectsstatic final <T> T
unproxyObject
(T object, Class<T> clazz) Unproxies the object if it is aHibernateProxy
and 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 areHibernateProxy
s and returns all objects- Type Parameters:
T
- type of the objects- Parameters:
objects
- to unproxyclazz
- of the objects- Returns:
List
of all the objects with all the objects unproxied
-
unproxySet
-
unproxyObject
Unproxies the object if it is aHibernateProxy
and 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
-