public class HibernateUtils extends Object
Hibernate objects| Modifier 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  
HibernateProxys 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)
HibernateProxys 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 objectHibernateProxypublic static final <T> void initialize(T object,
                                        Class<T> clazz)
public static final void initialize(Object proxy)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.