Class HibernateProxyHelper

java.lang.Object
org.dspace.core.HibernateProxyHelper

public final class HibernateProxyHelper extends Object
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 Details

    • getClassWithoutInitializingProxy

      public static Class getClassWithoutInitializingProxy(Object object)
      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!