Package org.hibernate.annotations
Annotation Type UuidGenerator
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface UuidGenerator
Specifies that an entity identifier is generated as an IETF RFC 4122 UUID.- Since:
- 6.0
- See Also:
UuidGenerator
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends UuidValueGenerator>
algorithm
Allows to provide a specific, generally custom, value generation implementation.UuidGenerator.Style
style
Specifies which style of UUID generation should be used.
-
-
-
Element Detail
-
style
UuidGenerator.Style style
Specifies which style of UUID generation should be used.- Default:
- org.hibernate.annotations.UuidGenerator.Style.AUTO
-
-
-
algorithm
@Incubating Class<? extends UuidValueGenerator> algorithm
Allows to provide a specific, generally custom, value generation implementation.- API Note:
- If algorithm is specified, it is expected that style() be UuidGenerator.Style.AUTO.
- Default:
- org.hibernate.id.uuid.UuidValueGenerator.class
-
-