Package org.hibernate.annotations

Annotation Interface UuidGenerator


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

The type of the identifier attribute may beUUID orString.

Since:
6.0
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 whichstyle of UUID generation should be used.