Class EntityProjectionBinder
java.lang.Object
org.hibernate.search.mapper.pojo.search.definition.binding.builtin.EntityProjectionBinder
- All Implemented Interfaces:
ProjectionBinder
Binds a constructor parameter to a projection to the entity that was originally indexed,
which for the Hibernate ORM mapper is a managed entity loaded from the database.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbind(ProjectionBindingContext context) Binds a constructor parameter to a projection.static EntityProjectionBindercreate()Creates anEntityProjectionBinderto be passed toMethodParameterMappingStep.projection(ProjectionBinder).
-
Method Details
-
create
Creates anEntityProjectionBinderto be passed toMethodParameterMappingStep.projection(ProjectionBinder).- Returns:
- The binder.
-
bind
Description copied from interface:ProjectionBinderBinds a constructor parameter to a projection.The context passed in parameter provides various information about the constructor parameter being bound. Implementations are expected to take advantage of that information and to call one of the
definition*(...)methods on the context to set the projection.- Specified by:
bindin interfaceProjectionBinder- Parameters:
context- A context object providing information about the constructor parameter being bound, and expecting a call to one of itsdefinition*(...)methods.
-