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.ElementType.TYPE ; 30 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 31 32 77 @Target ({TYPE, METHOD, FIELD}) 78 @Retention (RUNTIME) 79 80 public @interface TableGenerator { 81 82 86 String name(); 87 88 92 String table() default ""; 93 94 97 String catalog() default ""; 98 99 102 String schema() default ""; 103 104 108 String pkColumnName() default ""; 109 110 114 String valueColumnName() default ""; 115 116 123 String pkColumnValue() default ""; 124 125 129 int initialValue() default 0; 130 131 135 int allocationSize() default 50; 136 137 143 UniqueConstraint[] uniqueConstraints() default {}; 144 } 145 | Popular Tags |