01: package javax.persistence;
02:
03: import java.lang.annotation.*;
04: import static java.lang.annotation.ElementType.*;
05: import static java.lang.annotation.RetentionPolicy.*;
06:
07: @Target({TYPE,METHOD,FIELD})
08: @Retention(RUNTIME)
09: public @interface Column {
10: String name() default "";
11:
12: boolean primaryKey() default false;
13:
14: boolean unique() default false;
15:
16: boolean nullable() default true;
17:
18: boolean insertable() default true;
19:
20: boolean updatable() default true;
21:
22: String columnDefinition() default "";
23:
24: String secondaryTable() default "";
25:
26: int length() default 255;
27:
28: int precision() default 0;
29:
30: int scale() default 0;
31:
32: boolean specified() default true; // For internal use
33: }
|