13.3.6 Elements below sql-result-set-mapping
- Organization of this subsection
(1) <sql-result-set-mapping>
The SQL result set mapping defined by the sql-result-set-mapping element applies to the persistence unit.
The defined SQL result set mapping is added to the SQL result set mapping defined using annotations. If SQL result set mapping with the same name is defined in the annotation, the SQL result set mapping defined by the sql-result-set-mapping 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:
Attribute name |
Type |
Optional/Required |
Description |
---|---|---|---|
name |
xsd:string |
Required |
See the name attribute in 8.12.57 @SqlResultSetMapping. |