public static enum GeneratedValue.Type extends java.lang.Enum<GeneratedValue.Type>
| Enum Constant and Description |
|---|
AUTO
Automatic selection.
|
IDENTITY
Use identity generation.
|
SEQUENCE
Use a sequence.
|
UUID
UUID generation strategy.
|
| Modifier and Type | Method and Description |
|---|---|
static GeneratedValue.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GeneratedValue.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeneratedValue.Type AUTO
public static final GeneratedValue.Type SEQUENCE
public static final GeneratedValue.Type IDENTITY
public static final GeneratedValue.Type UUID
public static GeneratedValue.Type[] values()
for (GeneratedValue.Type c : GeneratedValue.Type.values()) System.out.println(c);
public static GeneratedValue.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null