Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: Temporal.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 static java.lang.annotation.ElementType.FIELD; |
||
6 | import static java.lang.annotation.ElementType.METHOD; |
||
7 | import java.lang.annotation.Retention; |
||
8 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
9 | import java.lang.annotation.Target; |
||
10 | |||
11 | /** |
||
12 | * This annotation must be specified for persistent fields or properties of type Date and Calendar. |
||
13 | * It may only be specified for fields or properties of these types. |
||
14 | * |
||
15 | * The Temporal annotation may be used in conjunction with the Basic annotation. |
||
16 | * |
||
17 | * @author Emmanuel Bernard |
||
18 | */ |
||
19 | @Target({METHOD, FIELD}) |
||
20 | @Retention(RUNTIME) |
||
21 | public @interface Temporal { |
||
22 | /** |
||
23 | * The type used in mapping java.util.Date or java.util.Calendar |
||
24 | */ |
||
25 | TemporalType value(); |
||
26 | } |