Interface CompositeProjectionValueStep<N extends CompositeProjectionOptionsStep<?,​T>,​T>

    • Method Detail

      • multi

        CompositeProjectionOptionsStep<?,​List<T>> multi()
        Defines the projection as multi-valued, i.e. returning List<T> instead of T.

        Calling multi() is mandatory for object projections on multi-valued object fields, otherwise the projection will throw an exception upon creating the search query.

        Calling multi() on basic composite projections is generally not useful: the only effect is that projected values will be wrapped in a one-element List.

        Returns:
        A new step to define optional parameters for the projection.