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 JoinColumn {
10: String name() default "";
11:
12: String referencedColumnName() default "";
13:
14: boolean primaryKey() default false;
15:
16: boolean unique() default false;
17:
18: boolean nullable() default true;
19:
20: boolean insertable() default true;
21:
22: boolean updatable() default true;
23:
24: String columnDefinition() default "";
25:
26: String secondaryTable() default "";
27: }
|