Annotation Type ProjectionConstructor
-
@Documented @Target({CONSTRUCTOR,TYPE}) @Retention(RUNTIME) @RootMapping @ConstructorMapping(processor=@ConstructorMappingAnnotationProcessorRef(type=ProjectionConstructorProcessor.class,retrieval=CONSTRUCTOR)) @TypeMapping(processor=@TypeMappingAnnotationProcessorRef(type=ProjectionConstructorProcessor.class,retrieval=CONSTRUCTOR)) public @interface ProjectionConstructor
Marks a constructor to use for projections from an index object (root or object field) to a Java object.The constructor must accept at least one argument.
When this annotation is added on a type instead of a constructor, it will apply to the only constructor of that type. If multiple constructors exist, an exception will be thrown on startup.