javax.persistence
Annotation Type TableGenerator


@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface TableGenerator

The @TableGenerator annotation.


Required Element Summary
 java.lang.String name
           
 
Optional Element Summary
 int allocationSize
           
 java.lang.String catalog
           
 int initialValue
           
 java.lang.String pkColumnName
           
 java.lang.String pkColumnValue
           
 java.lang.String schema
           
 java.lang.String table
           
 UniqueConstraint[] uniqueConstraints
           
 java.lang.String valueColumnName
           
 

Element Detail

name

public abstract java.lang.String name

table

public abstract java.lang.String table
Default:
""

catalog

public abstract java.lang.String catalog
Default:
""

schema

public abstract java.lang.String schema
Default:
""

pkColumnName

public abstract java.lang.String pkColumnName
Default:
""

valueColumnName

public abstract java.lang.String valueColumnName
Default:
""

pkColumnValue

public abstract java.lang.String pkColumnValue
Default:
""

initialValue

public abstract int initialValue
Default:
0

allocationSize

public abstract int allocationSize
Default:
50

uniqueConstraints

public abstract UniqueConstraint[] uniqueConstraints
Default:
{}