Class HibernateOrmEntityReference
- java.lang.Object
-
- org.hibernate.search.mapper.orm.common.impl.HibernateOrmEntityReference
-
- All Implemented Interfaces:
EntityReference,EntityReference
@Deprecated public final class HibernateOrmEntityReference extends Object implements EntityReference
Deprecated.Wherever possible, usePojoEntityReferenceinstead. This may not be possible everywhere due to backwards compatibility constraints.The (legacy) EntityReference implementation specific to the Hibernate ORM mapper.
-
-
Constructor Summary
Constructors Constructor Description HibernateOrmEntityReference(PojoRawTypeIdentifier<?> typeIdentifier, String name, Object id)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Deprecated.inthashCode()Deprecated.Objectid()Deprecated.Stringname()Deprecated.StringtoString()Deprecated.Class<?>type()Deprecated.static EntityReferencewithDefaultName(Class<?> type, Object id)Deprecated.static EntityReferencewithName(Class<?> type, String name, Object id)Deprecated.
-
-
-
Constructor Detail
-
HibernateOrmEntityReference
public HibernateOrmEntityReference(PojoRawTypeIdentifier<?> typeIdentifier, String name, Object id)
Deprecated.
-
-
Method Detail
-
withDefaultName
public static EntityReference withDefaultName(Class<?> type, Object id)
Deprecated.
-
withName
public static EntityReference withName(Class<?> type, String name, Object id)
Deprecated.
-
type
public Class<?> type()
Deprecated.- Specified by:
typein interfaceEntityReference- Returns:
- The type of the referenced entity.
-
name
public String name()
Deprecated.- Specified by:
namein interfaceEntityReference- Specified by:
namein interfaceEntityReference- Returns:
- The name of the referenced entity in the Hibernate ORM mapping.
- See Also:
Entity.name()
-
id
public Object id()
Deprecated.- Specified by:
idin 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).
-
-