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 about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-9 Attributes of <named-query>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Required | See the name attribute in 2.7.35 @NamedQuery in the manual uCosminexus Application Server API Reference Guide. |