Hibernate Reactive is a reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.
The central APIs are defined as inner interfaces of
Mutiny
, for programs using Mutiny reactive streams, andStage
, for programs using Java'sCompletionStage
.
Mutiny.SessionFactory
or
Stage.SessionFactory
may be obtained by
calling EntityManagerFactory.unwrap(Class)
.
The public API is organized into the following packages:
org.hibernate.reactive.mutiny | — | APIs specific to usage with Mutiny reactive streams |
org.hibernate.reactive.stage | — | APIs specific to usage with CompletionStage |
org.hibernate.reactive.common | — | APIs common to both kinds of reactive stream |
org.hibernate.reactive.id | — | SPI for plugin custom identifier generation |
org.hibernate.reactive.pool | — | SPI for plugin custom connection pooling |
org.hibernate.reactive.vertx | — | SPI for plugin custom integration with Vert.x |
SPIs are implemented as Hibernate services.
Packages not listed above are considered non-public and are subject to change without notice.
Package | Description |
---|---|
org.hibernate.reactive.bulk |
Reactive adaptations of Hibernate ORM's
MultiTableBulkIdStrategy . |
org.hibernate.reactive.common | |
org.hibernate.reactive.common.spi | |
org.hibernate.reactive.context |
Strategies for associating state with the current reactive stream.
|
org.hibernate.reactive.engine |
Reactive adaptations of Hibernate ORM's persistence actions.
|
org.hibernate.reactive.event |
Handlers for reactive session events.
|
org.hibernate.reactive.example.nativesql | |
org.hibernate.reactive.example.session | |
org.hibernate.reactive.exception | |
org.hibernate.reactive.id |
Reactive identifier generation.
|
org.hibernate.reactive.it.verticle | |
org.hibernate.reactive.loader |
Reactive entity, collection, and query loaders.
|
org.hibernate.reactive.loader.collection |
Reactive collection loaders.
|
org.hibernate.reactive.loader.entity |
Reactive entity loaders.
|
org.hibernate.reactive.mutiny |
An API for Hibernate Reactive where non-blocking operations are
represented by a Mutiny
Uni . |
org.hibernate.reactive.pool |
Abstracts reactive database access via
ReactiveConnection
and ReactiveConnectionPool . |
org.hibernate.reactive.provider |
Integration with Hibernate ORM, via the service architecture, along
with APIs for starting and configuring Hibernate Reactive.
|
org.hibernate.reactive.provider.service | |
org.hibernate.reactive.session |
Defines internal contracts between subsystems of Hibernate Reactive
and the
ReactiveSession . |
org.hibernate.reactive.stage |
An API for Hibernate Reactive where non-blocking operations are
represented by a Java
CompletionStage . |
org.hibernate.reactive.tuple | |
org.hibernate.reactive.vertx |
Integration with Vert.x.
|