@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface TableGenerator
Modifier and Type | Required Element and Description |
---|---|
String |
name
A unique generator name that can be referenced by one or more classes to be the generator for id values
|
Modifier and Type | Optional Element and Description |
---|---|
int |
allocationSize
The amount to increment by when allocating id numbers from the generator
|
String |
catalog
The catalog of the table
Defaults to the default catalog
|
int |
initialValue
The initial value to be used when allocating id numbers from the generator
|
String |
pkColumnName
Name of the primary key column in the table
Defaults to a provider-chosen name
|
String |
pkColumnValue
The primary key value in the generator table that distinguishes this set of generated values from others that may be stored in the table
Defaults to a provider-chosen value to store in the primary key column of the generator table
|
String |
schema
The schema of the table
Defaults to the default schema for user
|
String |
table
Name of table that stores the generated id values.
|
UniqueConstraint[] |
uniqueConstraints
Unique constraints that are to be placed on the table.
|
String |
valueColumnName
Name of the column that stores the last value generated
Defaults to a provider-chosen name
|
public abstract String name
public abstract String table
public abstract String catalog
public abstract String schema
public abstract String pkColumnName
public abstract String valueColumnName
public abstract String pkColumnValue
public abstract int initialValue
public abstract int allocationSize
public abstract UniqueConstraint[] uniqueConstraints