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