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