6.3.4 Elements below named-query

Organization of this subsection
(1) <named-query>

(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 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 nameTypeOptional/RequiredDescription
namexsd:stringRequiredSee the name attribute in 2.7.35 @NamedQuery in the manual uCosminexus Application Server API Reference Guide.