Expose metadata about the annotated type in the context passed to PropertyMappingAnnotationProcessor/TypeMappingAnnotationProcessor

Description

This will be useful if we ever need to restore annotations with a behavior similar to Search 5.

In particular:

  • We need the type of the annotated property, so as to decide whether to use .fullTextField or .genericField when implementing Search 5's @Field annotation.

  • We need access to other annotations on the annotated property, in order to support Search 5's @Analyzer, @Normalizer, @SortableField and maybe @NumericField. Maybe we could expose them as markers, similarly to what we did for bridge binding? See org.hibernate.search.mapper.pojo.bridge.builtin.spatial.impl.LatitudeMarker and org.hibernate.search.mapper.pojo.bridge.builtin.spatial.impl.GeoPointBridge.Binder#doBind for example.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure