Interface ReactiveIdentifierGenerator<Id>

All Superinterfaces:
org.hibernate.generator.Generator, Serializable
All Known Implementing Classes:
BlockingIdentifierGenerator, EmulatedSequenceReactiveIdentifierGenerator, ReactiveCompositeNestedGeneratedValueGenerator, ReactiveGeneratorWrapper, ReactiveSequenceIdentifierGenerator, TableReactiveIdentifierGenerator

@Incubating public interface ReactiveIdentifierGenerator<Id> extends org.hibernate.generator.Generator
A replacement for IdentifierGenerator, which supports a non-blocking method for obtaining the generated identifier.

A custom generation strategy may be defined by implementing this interface, and, optionally, Configurable, and declaring the custom implementation class using GenericGenerator.

See Also:
  • IdentifierGenerator
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a generated identifier, via a CompletionStage.
    generate(ReactiveConnectionSupplier session, Object owner, Object currentValue, org.hibernate.generator.EventType eventType)
     

    Methods inherited from interface org.hibernate.generator.Generator

    allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimes, getEventTypes