javax.persistence
Annotation Type SqlResultSetMapping


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

Specifies the mapping of the result of a native SQL query.

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.0 specification

Required Element Summary
 java.lang.String name
          Name of the mapping.
 
Optional Element Summary
 ColumnResult[] columns
          Mapping to scalar values.
 EntityResult[] entities
          Mapping to entities.
 

Element Detail

name

public abstract java.lang.String name
Name of the mapping.

entities

public abstract EntityResult[] entities
Mapping to entities.

Default:
{}

columns

public abstract ColumnResult[] columns
Mapping to scalar values.

Default:
{}