java.lang.Object
org.hibernate.search.mapper.pojo.search.definition.binding.builtin.IdProjectionBinder
All Implemented Interfaces:
ProjectionBinder

public final class IdProjectionBinder extends Object implements ProjectionBinder
Binds a constructor parameter to a projection to the identifier of the mapped entity, i.e. the value of the property marked as @DocumentId.
See Also:
  • Method Details

    • create

      public static IdProjectionBinder create()
      Returns:
      The binder.
    • bind

      public void bind(ProjectionBindingContext context)
      Description copied from interface: ProjectionBinder
      Binds 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:
      bind in interface ProjectionBinder
      Parameters:
      context - A context object providing information about the constructor parameter being bound, and expecting a call to one of its definition*(...) methods.