@Documented @Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface RootMapping
Meta-annotation for annotations that Hibernate Search should attempt to discover on bootstrap, in order to automatically detect mapped types, without application developers having to explicitly list mapped types.

This is useful in particular for mapping annotations that are not related to the index mapping, where annotated types may not be referenced from the entity types used as the starting point for the index mapping.

Note that discovery of such annotations relies on Hibernate Search scanning the application JARs, which may require additional setup.

See Also: