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: import static javax.persistence.FetchType.*;
07:
08: @Target({METHOD,FIELD})
09: @Retention(RUNTIME)
10: public @interface OneToOne {
11: String targetEntity() default "";
12:
13: CascadeType[] cascade() default {};
14:
15: FetchType fetch() default EAGER;
16:
17: boolean optional() default true;
18:
19: String mappedBy() default "";
20:
21: boolean usePKasFK() default false;
22: }
|