Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: ColumnResult.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.RetentionPolicy;
8
 
9
/**
10
 * References name of a column in the SELECT clause of a SQL query - i.e.,
11
 * column alias, if applicable. Scalar result types can be included in the query
12
 * result by specifying this annotation in the metadata.
13
 *
14
 * @author Emmanuel Bernard
15
 */
16
@Target({}) @Retention(RetentionPolicy.RUNTIME)
17
public @interface ColumnResult {
18
        /**
19
         * The name of a column in the SELECT clause of a SQL query
20
         */
21
        String name();
22
}