Deprecated
as a consequence of IdentifierGenerator being deprecated. See corresponding docs for further information.
IdentifierGenerator which generates UUID values using a pluggable
generation strategy. The values this generator can return
include UUID, String and byte[16]
Supports 2 config parameters:
UUID_GEN_STRATEGY - names the UUIDGenerationStrategy instance to useUUID_GEN_STRATEGY_CLASS - names the UUIDGenerationStrategy class to use
Currently there are 2 standard implementations of UUIDGenerationStrategy:
StandardRandomStrategy (the default, if none specified)org.hibernate.id.uuid.CustomVersionOneStrategy | Modifier and Type | Field and Description |
|---|---|
| private static final CoreMessageLogger | |
| private UUIDGenerationStrategy | |
| public static final String | |
| public static final String | |
| private UUIDTypeDescriptor. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static UUIDGenerator | buildSessionFactoryUniqueIdentifierGenerator()
Deprecated
as a consequence of
UUIDGenerator being deprecated.
|
| public void | configure(Type
The id property type descriptor type, Properties param values, keyed by parameter name params, ServiceRegistry Access to service that may be needed. serviceRegistry)Overrides default org. |
| public Serializable | generate(SharedSessionContractImplementor
The session from which the request originates session, Object the entity or collection (idbag) for which the id is being generated object)Implements org. |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| strategy | back to summary |
|---|---|
| private UUIDGenerationStrategy strategy | |
| UUID_GEN_STRATEGY | back to summary |
|---|---|
| public static final String UUID_GEN_STRATEGY | |
| UUID_GEN_STRATEGY_CLASS | back to summary |
|---|---|
| public static final String UUID_GEN_STRATEGY_CLASS | |
| valueTransformer | back to summary |
|---|---|
| private UUIDTypeDescriptor. | |
| UUIDGenerator | back to summary |
|---|---|
| public UUIDGenerator() | |
| buildSessionFactoryUniqueIdentifierGenerator | back to summary |
|---|---|
| public static UUIDGenerator buildSessionFactoryUniqueIdentifierGenerator()
Deprecated as a consequence of | |
| configure | back to summary |
|---|---|
| public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException Overrides default org. Doc from org. Configure this instance, given the value of parameters specified by the user as <param> elements.
This method is called just once, following instantiation, and before
| |
| generate | back to summary |
|---|---|
| public Serializable generate(SharedSessionContractImplementor session, Object object) throws HibernateException Implements org. Doc from org. Generate a new identifier.
| |