Class Hibernate


  • public final class Hibernate
    extends Object
    Since:
    8.7
    • Constructor Detail

      • Hibernate

        public Hibernate()
    • Method Detail

      • getClass

        public static Class<?> getClass​(Object obj)
        A wrapper around Hibernate.getClass(Object) which first checks to see if Hibernate is present, then invoking the method if so, else just returning the class of the argument.

        THis is useful in cases where our Hibernate entity classes use this method in their Object.equals(Object) implementations, but we don't want to enforce the presense of Hibernate on the classpath to use it.