Interface EntityReference
-
public interface EntityReferenceA reference to an indexed entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default ObjectgetId()Deprecated.Useid()instead.default StringgetName()Deprecated.Usename()instead.default Class<?>getType()Deprecated.Usetype()instead.Objectid()Stringname()Class<?>type()
-
-
-
Method Detail
-
type
Class<?> type()
- Returns:
- The type of the referenced entity.
-
getType
@Deprecated default Class<?> getType()
Deprecated.Usetype()instead.- 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()
-
getName
@Deprecated default String getName()
Deprecated.Usename()instead.- 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.
-
getId
@Deprecated default Object getId()
Deprecated.Useid()instead.- 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.
-
-