Class ObjectIdGenerators.UUIDGenerator

All Implemented Interfaces:
Serializable
Enclosing class:
ObjectIdGenerators

public static final class ObjectIdGenerators.UUIDGenerator extends ObjectIdGenerators.Base<UUID>
Implementation that just uses UUIDs as reliably unique identifiers: downside is that resulting String is 36 characters long.

One difference to other generators is that scope is always set as Object.class (regardless of arguments): this because UUIDs are globally unique, and scope has no meaning.

See Also:
  • Field Details

  • Constructor Details

    • UUIDGenerator

      public UUIDGenerator()
    • UUIDGenerator

      private UUIDGenerator(Class<?> scope)
  • Method Details