Class PojoEntityReference
java.lang.Object
org.hibernate.search.mapper.pojo.common.spi.PojoEntityReference
- All Implemented Interfaces:
EntityReference
A simple, default implementation for
EntityReference
for POJO-based mappers.
Should be used instead of custom implementations, whose support is going to be removed in the future.
-
Constructor Summary
ConstructorsConstructorDescriptionPojoEntityReference
(PojoRawTypeIdentifier<?> typeIdentifier, String name, Object id) -
Method Summary
-
Constructor Details
-
PojoEntityReference
-
-
Method Details
-
withDefaultName
-
withName
-
type
- Specified by:
type
in interfaceEntityReference
- Returns:
- The type of the referenced entity.
-
name
- Specified by:
name
in interfaceEntityReference
- Returns:
- The name of the referenced entity.
-
id
- Specified by:
id
in interfaceEntityReference
- 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
-
hashCode
public int hashCode() -
toString
-