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 OneToMany {
11: String targetEntity() default "";
12:
13: CascadeType[] cascade() default {};
14:
15: FetchType fetch() default LAZY;
16:
17: String mappedBy() default "";
18: }
|