UUIDs.
org.hibernate.annotations.UuidGenerator
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final UuidGenerator. | |
| private final UUIDJavaType. |
| Access | Constructor and Description |
|---|---|
| private | |
| public | UuidGenerator(UuidGenerator config, Member idMember, CustomIdGeneratorCreationContext creationContext)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | generate(SharedSessionContractImplementor
The session from which the request originates. session, Object The instance of the object owning the attribute for which we are generating a value. owner, Object The current value assigned to the property, or currentValue, EventType nullThe type of event that has triggered generation of a new value eventType)Implements org. |
| public EnumSet | Returns: EventTypeSets#INSERT_ONLYImplements org. |
| generator | back to summary |
|---|---|
| private final UuidGenerator. | |
| valueTransformer | back to summary |
|---|---|
| private final UUIDJavaType. | |
| UuidGenerator | back to summary |
|---|---|
| private UuidGenerator(UuidGenerator config, Member idMember) | |
| UuidGenerator | back to summary |
|---|---|
| public UuidGenerator(UuidGenerator config, Member idMember, CustomIdGeneratorCreationContext creationContext) | |
| UuidGenerator | back to summary |
|---|---|
| public UuidGenerator(UuidGenerator config, Member member, GeneratorCreationContext creationContext) | |
| generate | back to summary |
|---|---|
| public Object generate(SharedSessionContractImplementor session, Object owner, Object currentValue, EventType eventType) Implements org. Doc from org. Generate a value.
| |
| getEventTypes | back to summary |
|---|---|
| public EnumSet Implements org. Doc from org. The event types for which this generator should be called to produce a new value.
Identifier generators must return | |
| Modifier and Type | Method and Description |
|---|---|
| public UUID |
| generateUuid | back to summary |
|---|---|
| public UUID generateUuid(SharedSessionContractImplementor session) | |