Interface EntityReference

All Known Subinterfaces:
EntityReference
All Known Implementing Classes:
PojoEntityReference

public interface EntityReference
A reference to an indexed or contained entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
     
     
     
  • Method Details

    • type

      Class<?> type()
      Returns:
      The type of the referenced entity.
    • name

      String name()
      Returns:
      The name of the referenced entity.
    • id

      Object id()
      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).