The named native query defined by the named-native-query element applies to the persistence unit.
The defined named native query is added to the named native query defined using annotations. If a named native query with the same name is defined in the annotation, the named native query defined by the named-native-query element of the O/R mapping file 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-10 Attributes of <named-native-query>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Required | See the name attribute in 2.7.33 @NamedNativeQuery in the manual uCosminexus Application Server API Reference Guide. |
result-class | xsd:string | Optional | See the resultClass attribute in 2.7.33 @NamedNativeQuery in the manual uCosminexus Application Server API Reference Guide. |
result-set-mapping | xsd:string | Optional | See the resultSetMapping attribute in 2.7.33 @NamedNativeQuery in the manual uCosminexus Application Server API Reference Guide. |