Package org.hibernate.id
Class UUIDHexGenerator
java.lang.Object
org.hibernate.id.AbstractUUIDGenerator
org.hibernate.id.UUIDHexGenerator
- All Implemented Interfaces:
Serializable
,ExportableProducer
,BeforeExecutionGenerator
,Generator
,Configurable
,IdentifierGenerator
Deprecated.
The legacy id generator named
uuid
/ uuid.hex
.
A UUIDGenerator
that returns a string of length 32,
This string will consist of only hex digits. Optionally,
the string may be generated with separators between each
component of the UUID.
Mapping parameter supported: "separator".
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.The configuration parameter specifying the separator to use.Fields inherited from interface org.hibernate.id.IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(GeneratorCreationContext creationContext, Properties parameters) Deprecated.Configure this instance, given the value of parameters specified by the user as XML<param>
elements and@Parameter
annotations.protected String
format
(int intValue) Deprecated.protected String
format
(short shortValue) Deprecated.generate
(SharedSessionContractImplementor session, Object obj) Deprecated.Generate a new identifier.Methods inherited from class org.hibernate.id.AbstractUUIDGenerator
getCount, getHiTime, getIP, getJVM, getLoTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecution
Methods inherited from interface org.hibernate.id.Configurable
initialize
Methods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes
Methods inherited from interface org.hibernate.id.IdentifierGenerator
configure, generate, getEventTypes, registerExportables
-
Field Details
-
SEPARATOR
Deprecated.The configuration parameter specifying the separator to use.- See Also:
-
-
Constructor Details
-
UUIDHexGenerator
public UUIDHexGenerator()Deprecated.
-
-
Method Details
-
configure
public void configure(GeneratorCreationContext creationContext, Properties parameters) throws MappingException Deprecated.Description copied from interface:Configurable
Configure this instance, given the value of parameters specified by the user as XML<param>
elements and@Parameter
annotations.This method is called just once, following instantiation. If this instance also implements
ExportableProducer
, then this method is always called beforeExportableProducer.registerExportables(Database)
,- Parameters:
creationContext
- Access to the generator creation contextparameters
- param values, keyed by parameter name- Throws:
MappingException
- when there's something wrong with the given parameters
-
format
Deprecated. -
format
Deprecated.
-
hbm.xml
mappings.