javax.persistence
Annotation Type EntityResult


@Target(value={})
@Retention(value=RUNTIME)
public @interface EntityResult

Mapping of a result.

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

Required Element Summary
 java.lang.Class entityClass
          Class of the result.
 
Optional Element Summary
 java.lang.String discriminatorColumn
          Element used to specify the column name (or alias) of the column in the SELECT list that is used to determine the type of the entity instance.
 FieldResult[] fields
          Element used to Map the columns specified in the SELECT list of the query to the properties or fields of the entity class.
 

Element Detail

entityClass

public abstract java.lang.Class entityClass
Class of the result.

fields

public abstract FieldResult[] fields
Element used to Map the columns specified in the SELECT list of the query to the properties or fields of the entity class.

Default:
{}

discriminatorColumn

public abstract java.lang.String discriminatorColumn
Element used to specify the column name (or alias) of the column in the SELECT list that is used to determine the type of the entity instance.

Default:
""