@FunctionalInterface public interface ReactiveIdentifierGenerator<Id>
org.hibernate.id.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, org.hibernate.id.Configurable
, and declaring the custom implementation class using org.hibernate.annotations.GenericGenerator
.
Modifier and Type | Method and Description |
---|---|
CompletionStage<Id> | generate(ReactiveConnectionSupplier session, Object entity) Returns a generated identifier, via a CompletionStage . |
CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object entity)
CompletionStage
.session
- the reactive session