Details
Assignee
UnassignedUnassignedReporter
Yoann RodièreYoann RodièreComponents
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Yoann Rodière
Yoann RodièreComponents
Priority
Created October 12, 2021 at 3:52 PM
Updated September 25, 2023 at 2:48 PM
Currently if we annotate a method whose name, arguments, or modifiers (static) do not match the definition of a JavaBean getter, the annotation will simply be ignored.
Same if someone adds
@Indexed
on a class that is not a Hibernate ORM entity and is not otherwise referenced in the Hibernate Search model.We should consider logging a warning or throwing an exception instead. Probably warn for now and throw an exception in Hibernate Search 7.
See https://discourse.hibernate.org/t/suggestion-raise-an-exception-when-hsearch-annotation-is-present-on-unrecognized-method/5769