Hitachi

uCosminexus Application Server Compatibility Guide


8.12.57 @SqlResultSetMapping

Organization of this subsection

(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 8.12.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 8.12.7 @ColumnResult.

Default value

Blank array