Package org.hibernate.reactive.id
Interface ReactiveIdentifierGenerator<Id>
-
@Incubating public interface ReactiveIdentifierGenerator<Id>
A replacement forIdentifierGenerator
, 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 usingGenericGenerator
.- See Also:
IdentifierGenerator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Id>
generate(ReactiveConnectionSupplier session, Object entity)
Returns a generated identifier, via aCompletionStage
.
-
-
-
Method Detail
-
generate
CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object entity)
Returns a generated identifier, via aCompletionStage
.- Parameters:
session
- the reactive session
-
-