uCosminexus Application Server, API Reference Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
(1) Description
This annotation specifies the result set mapping of an SQL query.
The applicable target is class.
(2) Element
The following table lists the elements of @SqlResultSetMapping:
| Element name |
Optional/Required |
Element description |
| name |
Required |
This element specifies the name of the result set mapping. |
| entities |
Optional |
This element specifies an array of @EntityResult. |
| columns |
Optional |
This element specifies an array of @ColumnResult. |
The details of attributes that are supported with Cosminexus JPA provider are as follows:
(a) name element
- Type
- String
- Description
- This element specifies the name of the result set mapping.
- The value that can be specified is a character string.
- Default value
- None
(b) entities element
- Type
- EntityResult[]
- Description
- This element specifies an array of @EntityResult.
- You can specify the value within the specifiable range of the arrays of @EntityResult. For details, see 2.7.15 @EntityResult.
- Default value
- Blank array
(c) columns element
- Type
- ColumnResult[]
- Description
- This element specifies an array of @ColumnResult.
- You can specify the value within the specifiable range of the arrays of @ColumnResult. For details, see 2.7.7 @ColumnResult.
- Default value
- Blank array
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.