2.7.57 @SqlResultSetMapping

Organization of this subsection
(1) Description
(2) Element

(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 nameOptional/RequiredElement description
nameRequiredThis element specifies the name of the result set mapping.
entitiesOptionalThis element specifies an array of @EntityResult.
columnsOptionalThis 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