Class HibernateOrmEntityReference

java.lang.Object
org.hibernate.search.mapper.orm.common.impl.HibernateOrmEntityReference
All Implemented Interfaces:
EntityReference, EntityReference

@Deprecated public final class HibernateOrmEntityReference extends Object implements EntityReference
Deprecated.
Wherever possible, use PojoEntityReference instead. This may not be possible everywhere due to backwards compatibility constraints.
The (legacy) EntityReference implementation specific to the Hibernate ORM mapper.
  • Constructor Details

  • Method Details

    • withDefaultName

      public static EntityReference withDefaultName(Class<?> type, Object id)
      Deprecated.
    • withName

      public static EntityReference withName(Class<?> type, String name, Object id)
      Deprecated.
    • type

      public Class<?> type()
      Deprecated.
      Specified by:
      type in interface EntityReference
      Returns:
      The type of the referenced entity.
    • name

      public String name()
      Deprecated.
      Specified by:
      name in interface EntityReference
      Specified by:
      name in interface EntityReference
      Returns:
      The name of the referenced entity in the Hibernate ORM mapping.
      See Also:
    • id

      public Object id()
      Deprecated.
      Specified by:
      id in interface EntityReference
      Returns:
      The identifier of the referenced entity for Hibernate Search. This is the value of the property used to generate the document ID, which is generally also the entity ID (though depending on the mapping this may be another unique property).
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object