public enum ValueGenerator
Value generation strategies
Enum constant | Description |
---|---|
ASSIGNED |
Generated through assignment |
AUTO |
The default generated |
CUSTOM |
Custom value generation strategy |
FOREIGN |
use the identifier of another object |
GENERATED |
Generated by the datastore implementation |
GUID |
uses a database-generated GUID string on MS SQL Server and MySQL. |
HILO |
A generator that uses a HILO algorithm |
IDENTITY |
Using an identity column |
INCREMENT |
A generator that uses an auto-increment column |
NATIVE |
Generated natively from the underlying datastore |
SELECT |
Generates the id by selecting from a row using a unique key |
SEQHILO |
A generator that uses a sequence and a HILO algorithm |
SEQUENCE |
Generated from a sequence |
UUID |
A generator that uses UUIDs |
UUID2 |
A generator that uses UUID2s |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Generated through assignment
The default generated
Custom value generation strategy
use the identifier of another object
Generated by the datastore implementation
uses a database-generated GUID string on MS SQL Server and MySQL.
A generator that uses a HILO algorithm
Using an identity column
A generator that uses an auto-increment column
Generated natively from the underlying datastore
Generates the id by selecting from a row using a unique key
A generator that uses a sequence and a HILO algorithm
Generated from a sequence
A generator that uses UUIDs
A generator that uses UUID2s
Groovy Documentation