Annotation Interface Discoverable


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface Discoverable
Specifies that the meta-annotated annotation type identifies classes which are automatically discovered by the Jakarta EE container and passed on to the persistence provider via PersistenceUnitInfo.getAllClassNames(). Such classes might include compiled Java types, module descriptors, and package descriptors.

A persistence provider may define its own custom discoverable annotation types. Classes annotated with custom discoverable annotations must be included in the list of class names passed by the container to the provider.

Since:
4.0