8.12.19 @FieldResult
- Organization of this subsection
(1) Description
This annotation specifies the field in which the query results of the SQL are to be mapped.
The applicable target is the field element of @EntityResult.
(2) Element
The following table lists the elements of @FieldResult:
|
Element name |
Optional/Required |
Element description |
|---|---|---|
|
Required |
This element specifies the name of the persistence field or persistence property of the class. |
|
|
Required |
This element specifies the name or optional name of the column of SELECT clause. |
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 persistence field or persistence property of the class.
- Default value
-
None
(b) column element
- Type
-
String
- Description
-
This element specifies the name or optional name of the column of SELECT clause.
The column name or optional name that can be specified depends on the database specifications.
- Default value
-
None