java.lang.Object | |
↳ | org.hibernate.id.UUIDGenerator |
An IdentifierGenerator
which generates UUID values using a pluggable
generation strategy
. The values this generator can return
include UUID
, String
and byte[16]
UUID_GEN_STRATEGY
- names the UUIDGenerationStrategy
instance to useUUID_GEN_STRATEGY_CLASS
- names the UUIDGenerationStrategy
class to useUUIDGenerationStrategy
:StandardRandomStrategy
(the default, if none specified)CustomVersionOneStrategy
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | UUID_GEN_STRATEGY | ||||||||||
String | UUID_GEN_STRATEGY_CLASS |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.hibernate.id.IdentifierGenerator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Configure this instance, given the value of parameters
specified by the user as <param> elements.
| |||||||||||
Generate a new identifier.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.id.Configurable
| |||||||||||
From interface
org.hibernate.id.IdentifierGenerator
|
Configure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.
params | param values, keyed by parameter name |
---|
MappingException |
---|
Generate a new identifier.
object | the entity or toplevel collection for which the id is being generated |
---|
HibernateException |
---|