public class HibernateUtils extends Object
| Constructor and Description |
|---|
HibernateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
deproxy(T t)
Ensure a domain object is an actual persisted object and not a Hibernate proxy object by getting its real implementation.
|
public static <T> T deproxy(T t)
Ensure a domain object is an actual persisted object and not a Hibernate proxy object by getting its real implementation.
This is primarily useful when retrieving a lazy loaded object that has been subclassed and you have the intention of casting it.
t - the domain object to deproxyCopyright © 2019. All rights reserved.