Class UUIDHexGenerator

java.lang.Object
org.hibernate.id.AbstractUUIDGenerator
org.hibernate.id.UUIDHexGenerator
All Implemented Interfaces:
Serializable, ExportableProducer, BeforeExecutionGenerator, Generator, Configurable, IdentifierGenerator

@Deprecated(since="6") public class UUIDHexGenerator extends AbstractUUIDGenerator
Deprecated.
This remains around as an implementation detail of hbm.xml mappings.
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 Details

    • SEPARATOR

      public static final String 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 before ExportableProducer.registerExportables(Database),

      Parameters:
      creationContext - Access to the generator creation context
      parameters - param values, keyed by parameter name
      Throws:
      MappingException - when there's something wrong with the given parameters
    • 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 originates
      obj - 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.