Project

General

Profile

« Previous | Next » 

Revision d3af2c76

Added by Andreas Kohlbecker over 15 years ago

getClassWithoutInitializingProxy() added to HibernateProxyHelper

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/hibernate/HibernateProxyHelper.java
49 49
	         return clazz.isAssignableFrom(object.getClass());
50 50
	     }
51 51
	 }
52
	
53
	/**
54
	 * Get the class of an instance or the underlying class
55
	 * of a proxy (without initializing the proxy!). It is
56
	 * almost always better to use the entity name!
57
	 * 
58
	 * delegates calls to {@link org.hibernate.proxy.HibernateProxyHelper}
59
	 */
60
	public static Class getClassWithoutInitializingProxy(Object object) {
61
		return org.hibernate.proxy.HibernateProxyHelper.getClassWithoutInitializingProxy(object);
62
	}
52 63
}

Also available in: Unified diff