Annotation Type FieldProjection
@Documented
@Target(PARAMETER)
@Retention(RUNTIME)
@MethodParameterMapping(processor=@MethodParameterMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.FieldProjectionProcessor.class,retrieval=CONSTRUCTOR))
public @interface FieldProjection
Maps a constructor parameter to a projection to the value of a field in the indexed document.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionorg.hibernate.search.engine.search.common.ValueConvertDeprecated.org.hibernate.search.engine.search.common.ValueModel
-
Element Details
-
path
String path- Returns:
- The path
to the index field whose value will be extracted.
Defaults to the name of the annotated constructor parameter,
if it can be retrieved (requires the class to be compiled with the
-parametersflag; otherwise an emptypathwill lead to a failure). - See Also:
- Default:
""
-
convert
Deprecated.UsevalueModel()instead. Note, settingconvert()to non-defaultValueConvert.NOwill result in an exception at runtime, usevalueModel()withValueModel.INDEXinstead.Setting
valueModel()to any non-default value will take precedence overconvert()defaultValueConvert.YESvalue.- Returns:
- A value controlling how the data fetched from the backend should be converted.
- See Also:
- Default:
DEFAULT
-
valueModel
org.hibernate.search.engine.search.common.ValueModel valueModel- Returns:
- The model value, determines how the data fetched from the backend should be converted.
- See Also:
- Default:
DEFAULT
-
valueModel()instead.