Package org.hibernate.annotations
Annotation Interface UuidGenerator
Specifies that an entity identifier is generated as an
IETF RFC 4122 UUID.
- Since:
- 6.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represents a kind of UUID, that is, what RFC 4122 calls a "version". -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends UuidValueGenerator>
Allows to provide a specific, generally custom, value generation implementation.Specifies which style of UUID generation should be used.
-
Element Details
-
style
UuidGenerator.Style styleSpecifies which style of UUID generation should be used.- Default:
- AUTO
-
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
-