Annotation Type CompositeProjection
-
@Documented @Target(PARAMETER) @Retention(RUNTIME) @MethodParameterMapping(processor=@MethodParameterMappingAnnotationProcessorRef(type=CompositeProjectionProcessor.class,retrieval=CONSTRUCTOR)) public @interface CompositeProjection
Maps a constructor parameter to a composite projection, which will combine multiple inner projections.The content of the composite projection is defined in the constructor parameter type by another
ProjectionConstructor.On contrary to the
object projection, a composite projection is not bound to a specific object field, and thus it will always yield one and only one value.- See Also:
SearchProjectionFactory.composite()