1 23 package javax.persistence; 24 25 import java.lang.annotation.Target ; 26 import java.lang.annotation.Retention ; 27 import static java.lang.annotation.ElementType.FIELD ; 28 import static java.lang.annotation.ElementType.METHOD ; 29 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 30 31 44 @Target ({METHOD, FIELD}) 45 @Retention (RUNTIME) 46 47 public @interface JoinColumn { 48 49 66 String name() default ""; 67 68 82 String referencedColumnName() default ""; 83 84 93 boolean unique() default false; 94 95 96 boolean nullable() default true; 97 98 103 boolean insertable() default true; 104 105 110 boolean updatable() default true; 111 112 117 String columnDefinition() default ""; 118 119 125 String table() default ""; 126 } 127 | Popular Tags |