Annotation Interface UuidGenerator


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface UuidGenerator
Specifies that an entity identifier is generated as an IETF RFC 4122 UUID.

The type of the identifier attribute may be UUID or String.

Since:
6.0
Author:
Steve Ebersole
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Represents a kind of UUID, that is, what RFC 4122 calls a "version".
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Allows to provide a specific, generally custom, value generation implementation.
    Specifies which style of UUID generation should be used.
  • Element Details

    • style

      Specifies which style of UUID generation should be used.
      Default:
      AUTO
    • algorithm

      @Incubating Class<? extends UuidValueGenerator> algorithm
      Allows to provide a specific, generally custom, value generation implementation.
      Default:
      org.hibernate.id.uuid.UuidValueGenerator.class