1 23 package javax.persistence; 24 25 import java.lang.annotation.Target ; 26 import java.lang.annotation.Retention ; 27 import javax.persistence.CascadeType; 28 import static java.lang.annotation.ElementType.FIELD ; 29 import static java.lang.annotation.ElementType.METHOD ; 30 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 31 import static javax.persistence.FetchType.LAZY; 32 33 95 @Target ({METHOD, FIELD}) 96 @Retention (RUNTIME) 97 98 public @interface ManyToMany { 99 100 109 Class targetEntity() default void.class; 110 111 116 CascadeType[] cascade() default {}; 117 118 126 FetchType fetch() default LAZY; 127 128 132 String mappedBy() default ""; 133 } 134 | Popular Tags |