1 package org.hibernate.proxy; 3 4 5 9 public final class HibernateProxyHelper { 10 11 16 public static Class getClassWithoutInitializingProxy(Object object) { 17 if (object instanceof HibernateProxy) { 18 HibernateProxy proxy = (HibernateProxy) object; 19 LazyInitializer li = proxy.getHibernateLazyInitializer(); 20 return li.getPersistentClass(); 21 } 22 else { 23 return object.getClass(); 24 } 25 } 26 27 private HibernateProxyHelper() { 28 } 30 31 } 32 33 34 35 36 37 38 | Popular Tags |