Class ReactiveGeneratorWrapper

java.lang.Object
org.hibernate.reactive.id.impl.ReactiveGeneratorWrapper
All Implemented Interfaces:
Serializable, org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.generator.BeforeExecutionGenerator, org.hibernate.generator.Generator, org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator, ReactiveIdentifierGenerator<Object>

public class ReactiveGeneratorWrapper extends Object implements org.hibernate.id.IdentifierGenerator, org.hibernate.boot.model.relational.ExportableProducer, ReactiveIdentifierGenerator<Object>
See Also:
  • Constructor Details

  • Method Details

    • initialize

      public void initialize(org.hibernate.boot.model.relational.SqlStringGenerationContext context)
      Specified by:
      initialize in interface org.hibernate.id.Configurable
    • generate

      public CompletionStage<Object> generate(ReactiveConnectionSupplier session, Object entity)
      Description copied from interface: ReactiveIdentifierGenerator
      Returns a generated identifier, via a CompletionStage.
      Specified by:
      generate in interface ReactiveIdentifierGenerator<Object>
      Parameters:
      session - the reactive session
    • generate

      public Object generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)
      Specified by:
      generate in interface org.hibernate.id.IdentifierGenerator
    • registerExportables

      public void registerExportables(org.hibernate.boot.model.relational.Database database)
      Specified by:
      registerExportables in interface org.hibernate.boot.model.relational.ExportableProducer
      Specified by:
      registerExportables in interface org.hibernate.id.IdentifierGenerator