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
,StandardGenerator
,IdentifierGenerator
@Deprecated(since="6") public class UUIDHexGenerator extends AbstractUUIDGenerator
Deprecated.This remains around as an implementation detail ofhbm.xml
mappings.The legacy id generator nameduuid
/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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
SEPARATOR
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 Constructor Description UUIDHexGenerator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
configure(Type type, Properties parameters, ServiceRegistry serviceRegistry)
Deprecated.Configure this instance, given the value of parameters specified by the user as<param>
elements.protected String
format(int intValue)
Deprecated.protected String
format(short shortValue)
Deprecated.Object
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.generator.Generator
generatesOnInsert, generatesOnUpdate, generatesSometimes
-
Methods inherited from interface org.hibernate.id.IdentifierGenerator
generate, getEventTypes, initialize, registerExportables, supportsJdbcBatchInserts
-
-
-
-
Field Detail
-
SEPARATOR
public static final String SEPARATOR
Deprecated.The configuration parameter specifying the separator to use.- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(Type type, Properties parameters, ServiceRegistry serviceRegistry) throws MappingException
Deprecated.Description copied from interface:IdentifierGenerator
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
IdentifierGenerator.registerExportables(Database)
.- Parameters:
type
- The id property type descriptorparameters
- param values, keyed by parameter nameserviceRegistry
- Access to service that may be needed.- Throws:
MappingException
- If configuration fails.
-
generate
public Object generate(SharedSessionContractImplementor session, Object obj)
Deprecated.Description copied from interface:IdentifierGenerator
Generate a new identifier.- Parameters:
session
- The session from which the request originatesobj
- the entity or collection (idbag) for which the id is being generated- Returns:
- a new identifier
-
format
protected String format(int intValue)
Deprecated.
-
format
protected String format(short shortValue)
Deprecated.
-
-