This annotation specifies the result set mapping of an SQL query.
The applicable target is class.
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: