Jakarta Persistence (JPA) Annotation Type

jakarta.persistence.NamedQueries

Implemented Interfaces:
Annotation
Target:
Type

Declares multiple named Jakarta Persistence query language queries. Query names are scoped to the persistence unit. The NamedQueries annotation can be applied to an entity or mapped superclass.
See Also:
Since:
Jakarta Persistence (JPA) 1.0
The JPA Named Queries article explains how to use NamedQueries.

Annotation Elements

(Required) An array of NamedQuery annotations.
Since:
Jakarta Persistence (JPA) 1.0

Additional JDK methods inherited from java.lang.annotation.Annotation

annotationType(), equals(Object), hashCode(), toString()