Class EntityReferenceImpl
- java.lang.Object
-
- org.infinispan.search.mapper.common.impl.EntityReferenceImpl
-
- All Implemented Interfaces:
EntityReference
public class EntityReferenceImpl extends Object implements EntityReference
-
-
Constructor Summary
Constructors Constructor Description EntityReferenceImpl(org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeIdentifier<?> typeIdentifier, String name, Object id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()Objectkey()Stringname()StringtoString()Class<?>type()static EntityReferencewithDefaultName(Class<?> type, Object id)
-
-
-
Method Detail
-
withDefaultName
public static EntityReference withDefaultName(Class<?> type, Object id)
-
type
public Class<?> type()
- Specified by:
typein interfaceEntityReference- Returns:
- The type of the referenced entity.
-
name
public String name()
- Specified by:
namein interfaceEntityReference- Returns:
- The name of the referenced entity in the Hibernate Search mapping.
- See Also:
SearchMappingBuilder.addEntityType(Class, String)
-
key
public Object key()
- Specified by:
keyin interfaceEntityReference- Returns:
- The key of the referenced entity.
-
-