13.3.4 Elements below named-query
- Organization of this subsection
(1) <named-query>
The named query defined by the named-query element applies to the persistence unit.
The defined named query is added to the named query defined using annotations. If a named query with the same name is defined in the annotation, the named query defined by the named-query element is overwritten.
For details on the functionality and attributes, see 8.12 javax.persistence package.
The following table lists the specifiable attributes:
Attribute name |
Type |
Optional/Required |
Description |
---|---|---|---|
name |
xsd:string |
Required |
See the name attribute in 8.12.35 @NamedQuery. |