@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface GeneratedValue
Modifier and Type | Optional Element and Description |
---|---|
String |
generator
The name of the primary key generator to use as specified in the SequenceGenerator or
TableGenerator annotation.
|
GenerationType |
strategy
The primary key generation strategy that the persistence provider must use
to generate the annotated entity primary key.
|
public abstract GenerationType strategy
public abstract String generator