Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: Enumerated.java 11282 2007-03-14 22:05:59Z epbernard $
2
package javax.persistence;
3
 
4
import java.lang.annotation.Retention;
5
import java.lang.annotation.Target;
6
 
7
import static java.lang.annotation.RetentionPolicy.*;
8
import static java.lang.annotation.ElementType.*;
9
import static javax.persistence.EnumType.*;
10
 
11
/**
12
 * Specifies that a persistent property or field should be persisted as a enumerated type.
13
 * It may be used in conjunction with the Basic annotation.
14
 *
15
 * @author Emmanuel Bernard
16
 */
17
@Target({METHOD, FIELD})
18
@Retention(RUNTIME)
19
public @interface Enumerated {
20
        /**
21
         * The type used in mapping an enum type
22
         */
23
        EnumType value() default ORDINAL;
24
}