Package org.dspace.core
Class HibernateProxyHelper
java.lang.Object
org.dspace.core.HibernateProxyHelper
Utility methods for working with Hibernate proxies.
This class existed in Hibernate 5 but was removed from v6.
https://github.com/hibernate/hibernate-orm/blob/5.6/hibernate-core/src/main/java/org/hibernate/proxy/HibernateProxyHelper.java
We've copied it into DSpace to utilize the below utility method.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassGet the class of an instance or the underlying class of a proxy (without initializing the proxy!).
-
Method Details
-
getClassWithoutInitializingProxy
Get the class of an instance or the underlying class of a proxy (without initializing the proxy!). It is almost always better to use the entity name!
-