Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: SqlResultSetMapping.java 11282 2007-03-14 22:05:59Z epbernard $
2
//EJB3 Specification Copyright 2004-2006 Sun Microsystems, Inc.
3
package javax.persistence;
4
 
5
import java.lang.annotation.Target;
6
import java.lang.annotation.Retention;
7
import java.lang.annotation.ElementType;
8
import java.lang.annotation.RetentionPolicy;
9
 
10
/**
11
 * This annotation is used to specify the mapping of the result of a native SQL query
12
 *
13
 * @author Emmanuel Bernard
14
 */
15
@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME)
16
public @interface SqlResultSetMapping {
17
        /**
18
         * The name given to the result set mapping, and used to refer to it in the methods of the Query API
19
         */
20
        String name();
21
        /**
22
         * Specifies the result set mapping to entities
23
         */
24
        EntityResult[] entities() default {};
25
        /**
26
         * Specifies the result set mapping to scalar values
27
         */
28
        ColumnResult[] columns() default {};
29
}