Hitachi

uCosminexus Application Server Compatibility Guide


13.3.5 Elements below named-native-query

Organization of this subsection

(1) <named-native-query>

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 on the functionality and attributes, see 8.12 javax.persistence package.

The following table lists the specifiable attributes:

Table 13‒10: Attributes of <named-native-query>

Attribute name

Type

Optional/Required

Description

name

xsd:string

Required

See the name attribute in 8.12.33 @NamedNativeQuery.

result-class

xsd:string

Optional

See the resultClass attribute in 8.12.33 @NamedNativeQuery.

result-set-mapping

xsd:string

Optional

See the resultSetMapping attribute in 8.12.33 @NamedNativeQuery.