Annotation Type ProjectionConstructor
@Documented
@Target({CONSTRUCTOR,TYPE})
@Retention(RUNTIME)
@RootMapping
@ConstructorMapping(processor=@ConstructorMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.ProjectionConstructorProcessor.class,retrieval=CONSTRUCTOR))
@TypeMapping(processor=@TypeMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.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.