org.hibernate.search.hcore.util.impl

## Class HibernateHelper

- java.lang.Object
- - org.hibernate.search.hcore.util.impl.HibernateHelper

-     public final class HibernateHelper
      extends Object

  Author:
    Emmanuel Bernard

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> Class<T>` | `getClass(T entity)` Get the real class type.
    `static IndexedTypeIdentifier` | `getIndexedTypeIdFromWork(Work work)`
    `static void` | `initialize(Object entity)`
    `static boolean` | `isInitialized(Object entity)`
    `static Object` | `unproxy(Object value)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getClass

          public static <T> Class<T> getClass(T entity)

      Get the real class type. In case of Hibernate proxies, return the entity type rather than the proxy's
      Type Parameters:
        `T` - the type of the entity
      Parameters:
        `entity` - an instance of the entity type
      Returns:
        the real class of the type

    - #### initialize

          public static void initialize(Object entity)

    - #### isInitialized

          public static boolean isInitialized(Object entity)

    - #### getIndexedTypeIdFromWork

          public static IndexedTypeIdentifier getIndexedTypeIdFromWork(Work work)

    - #### unproxy

          public static Object unproxy(Object value)

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved