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.METHOD ; 28 import static java.lang.annotation.ElementType.FIELD ; 29 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 30 31 57 @Target ({METHOD, FIELD}) 58 @Retention (RUNTIME) 59 public @interface Column { 60 61 65 String name() default ""; 66 67 75 boolean unique() default false; 76 77 80 boolean nullable() default true; 81 82 86 boolean insertable() default true; 87 88 92 boolean updatable() default true; 93 94 100 String columnDefinition() default ""; 101 102 106 String table() default ""; 107 108 112 int length() default 255; 113 114 120 int precision() default 0; 121 122 126 int scale() default 0; 127 } 128 | Popular Tags |