Interface TypeMappingSearchEntityStep
@Incubating
public interface TypeMappingSearchEntityStep
The step in a mapping definition where a type's entity metadata can be configured more precisely.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TypeMappingSearchEntitySteploadingBinder(Object binder) Defines a binder for loading of entities of this type.default TypeMappingSearchEntitySteploadingBinder(org.hibernate.search.engine.environment.bean.BeanReference<?> binderRef) Defines a binder for loading of entities of this type.loadingBinder(org.hibernate.search.engine.environment.bean.BeanReference<?> binderRef, Map<String, Object> params) Defines a binder for loading of entities of this type.
-
Method Details
-
name
- Parameters:
entityName- The name of the entity type. Defaults to the JPA entity name for the Hibernate ORM mapper, or failing that to thesimple class name.- Returns:
this, for method chaining.- See Also:
-
loadingBinder
Defines a binder for loading of entities of this type.Note: this is unnecessary when using the Hibernate ORM mapper, which contributes this information automatically.
To pass some parameters to the binder, use the method
loadingBinder(BeanReference, Map)instead.- Parameters:
binder- A loading binder to apply to the entity type.- Returns:
this, for method chaining.- See Also:
-
loadingBinder
default TypeMappingSearchEntityStep loadingBinder(org.hibernate.search.engine.environment.bean.BeanReference<?> binderRef) Defines a binder for loading of entities of this type.Note: this is unnecessary when using the Hibernate ORM mapper, which contributes this information automatically.
To pass some parameters to the binder, use the method
loadingBinder(BeanReference, Map)instead.- Parameters:
binderRef- ABeanReferenceto the loading binder to apply to the entity type.- Returns:
this, for method chaining.- See Also:
-
loadingBinder
TypeMappingSearchEntityStep loadingBinder(org.hibernate.search.engine.environment.bean.BeanReference<?> binderRef, Map<String, Object> params) Defines a binder for loading of entities of this type.Note: this is unnecessary when using the Hibernate ORM mapper, which contributes this information automatically.
With this method it is possible to pass a set of parameters to the binder.
- Parameters:
binderRef- ABeanReferenceto the loading binder to apply to the entity type.params- The parameters to pass to the binder.- Returns:
this, for method chaining.- See Also:
-