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 boolean
equals(Object obj)
int
hashCode()
Object
key()
String
name()
String
toString()
Class<?>
type()
static EntityReference
withDefaultName(Class<?> type, Object id)
-
-
-
Method Detail
-
withDefaultName
public static EntityReference withDefaultName(Class<?> type, Object id)
-
type
public Class<?> type()
- Specified by:
type
in interfaceEntityReference
- Returns:
- The type of the referenced entity.
-
name
public String name()
- Specified by:
name
in 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:
key
in interfaceEntityReference
- Returns:
- The key of the referenced entity.
-
-