Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: FieldResult.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.Retention; |
||
6 | import java.lang.annotation.Target; |
||
7 | import java.lang.annotation.RetentionPolicy; |
||
8 | |||
9 | /** |
||
10 | * Is used to map the columns specified in the SELECT list of the query to the properties |
||
11 | * or fields of the entity class. |
||
12 | * |
||
13 | * @author Emmanuel Bernard |
||
14 | */ |
||
15 | @Target({}) @Retention(RetentionPolicy.RUNTIME) |
||
16 | public @interface FieldResult { |
||
17 | /** |
||
18 | * Name of the persistent field or property of the class. |
||
19 | */ |
||
20 | String name(); |
||
21 | /** |
||
22 | * Name of the column in the SELECT clause - i.e., column aliases, if applicable. |
||
23 | */ |
||
24 | String column(); |
||
25 | } |