public class HibernateUtils extends Object
Hibernate
objectsModifier and Type | Method and Description |
---|---|
static <T> void |
initialize(List<T> objects,
Class<T> clazz) |
static void |
initialize(Object proxy) |
static <T> void |
initialize(T object,
Class<T> clazz) |
static <T> List<T> |
unproxyList(List<T> objects,
Class<T> clazz)
Unproxies any of the given objects that are
HibernateProxy s and returns all objects |
static <T> T |
unproxyObject(T object,
Class<T> clazz)
Unproxies the object if it is a
HibernateProxy and returns the unproxied object |
public static final <T> List<T> unproxyList(List<T> objects, Class<T> clazz)
HibernateProxy
s and returns all objectsT
- type of the objectsobjects
- to unproxyclazz
- of the objectsList
of all the objects with all the objects unproxiedpublic static final <T> T unproxyObject(T object, Class<T> clazz)
HibernateProxy
and returns the unproxied objectT
- type of the objectsobject
- to unproxyclazz
- of the objectHibernateProxy
public static final <T> void initialize(T object, Class<T> clazz)
public static final void initialize(Object proxy)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.