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

public final class ObjectProjectionBinder extends Object implements ProjectionBinder
Binds a constructor parameter to an object projection bound to a specific object field in the indexed document.

The content of the object projection is defined in the constructor parameter type by another ProjectionConstructor.

Compared to the basic composite projection, an object projection is bound to a specific object field, and thus it yields zero, one or many values, as many as there are objects in the targeted object field. Therefore, you must take care of using a List<...> as your constructor parameter type if the object field is multi-valued.

See Also: