Deprecated
since 6.
This remains around as an implementation detail of hbm.xml mappings.
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.
| Modifier and Type | Field and Description |
|---|---|
| private static final CoreMessageLogger | |
| private String | |
| public static final String | SEPARATOR
The configuration parameter specifying the separator to use. |
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(Type
The id property type descriptor type, Properties param values, keyed by parameter name parameters, ServiceRegistry Access to service that may be needed. serviceRegistry)Overrides default org. <param> elements.
|
| protected String | |
| protected String | |
| public Object | generate(SharedSessionContractImplementor
The session from which the request originates session, Object the entity or collection (idbag) for which the id is being generated obj)Implements org. |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| sep | back to summary |
|---|---|
| private String sep | |
| SEPARATOR | back to summary |
|---|---|
| public static final String SEPARATOR The configuration parameter specifying the separator to use. | |
| WARNED | back to summary |
|---|---|
| private static boolean WARNED | |
| UUIDHexGenerator | back to summary |
|---|---|
| public UUIDHexGenerator() | |
| configure | back to summary |
|---|---|
| public void configure(Type type, Properties parameters, ServiceRegistry serviceRegistry) throws MappingException Overrides default org. Doc from org. Configure this instance, given the value of parameters
specified by the user as
This method is called just once, following instantiation,
and before
| |
| format | back to summary |
|---|---|
| protected String format(int intValue) | |
| format | back to summary |
|---|---|
| protected String format(short shortValue) | |
| generate | back to summary |
|---|---|
| public Object generate(SharedSessionContractImplementor session, Object obj) Implements org. Doc from org. Generate a new identifier.
| |