javax.persistence
Annotation Type SequenceGenerator


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

The @SequenceGenerator annotation.


Required Element Summary
 java.lang.String name
           
 
Optional Element Summary
 int allocationSize
           
 java.lang.String catalog
           
 int initialValue
           
 java.lang.String schema
           
 java.lang.String sequenceName
           
 

Element Detail

name

public abstract java.lang.String name

sequenceName

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

catalog

public abstract java.lang.String catalog
Since:
JPA 2.0
Default:
""

schema

public abstract java.lang.String schema
Since:
JPA 2.0
Default:
""

initialValue

public abstract int initialValue
Default:
1

allocationSize

public abstract int allocationSize
Default:
50