Interface EntityReference
-
public interface EntityReference
A reference to an indexed entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
id()
String
name()
Class<?>
type()
-
-
-
Method Detail
-
type
Class<?> type()
- Returns:
- The type of the referenced entity.
-
name
String name()
- Returns:
- The name of the referenced entity in the Hibernate ORM mapping.
- See Also:
Entity.name()
-
id
Object id()
- Returns:
- The identifier of the referenced entity,
Generally this is the entity ID,
but a different value may be returned if another property than the entity ID is defined as
@DocumentId
.
-
-