javax.persistence
Annotation Type SqlResultSetMapping


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface SqlResultSetMapping

This annotation is used to specify the mapping of the result of a native SQL query

Author:
Emmanuel Bernard

Required Element Summary
 String name
          The name given to the result set mapping, and used to refer to it in the methods of the Query API
 
Optional Element Summary
 ColumnResult[] columns
          Specifies the result set mapping to scalar values
 EntityResult[] entities
          Specifies the result set mapping to entities
 

Element Detail

name

public abstract String name
The name given to the result set mapping, and used to refer to it in the methods of the Query API

entities

public abstract EntityResult[] entities
Specifies the result set mapping to entities

Default:
{}

columns

public abstract ColumnResult[] columns
Specifies the result set mapping to scalar values

Default:
{}