Need help with hibernate-reactive?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

149 Stars 27 Forks GNU Lesser General Public License v2.1 1.1K Commits 35 Opened issues


A reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.

Services available


Need anything else?

Contributors list

Hibernate logo

CI Status License Download

Hibernate Reactive

A reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.

Hibernate Reactive may be used in any plain Java program, but is especially targeted toward usage in reactive environments like Quarkus and Vert.x.

Currently PostgreSQL, MySQL, MariaDB, and Db2 are supported.

Learn more at


Hibernate Reactive has been tested with:

Support for SQL Server is coming soon.


The Introduction to Hibernate Reactive covers everything you need to know to get started, including:

We recommend you start there!

Example program

There is a very simple example program in the


Quarkus quickstarts

A list of quickstarts for Quarkus is available on GitHub: - Hibernate Reactive with RESTEasy Reactive quickstart - Hibernate Reactive with Vert.x Web Routes quickstart

Or you can generate a new Quarks project that uses the Hibernate Reactive extension and start coding right away.

Gradle build

The project is built with Gradle, but you do not need to have Gradle installed on your machine.


To compile this project, navigate to the

directory, and type:
./gradlew compileJava

To publish Hibernate Reactive to your local Maven repository, run:

./gradlew publishToMavenLocal

Building documentation

To build the API and Reference documentation type:

./gradlew assembleDocumentation

You'll find the generated documentation in the subdirectory

open release/build/documentation/reference/html_single/index.html
open release/build/documentation/javadocs/index.html

Running tests

To run the tests, you'll need to decide which RDBMS you want to test with, and then get an instance of the test database running on your machine.

By default, the tests will be run against PostgreSQL. To test against MySQL, MariaDB, or Db2, you must explicitly specify

, or
, for example:
./gradlew test -Pdb=db2

There are three ways to start the test database.

If you have Docker installed

If you have Docker installed, running the tests is really easy. You don't need to create the test databases manually. Just type:

./gradlew test -Pdocker


./gradlew test -Pdocker -Pdb=mysql


./gradlew test -Pdocker -Pdb=maria


./gradlew test -Pdocker -Pdb=db2

The tests will run faster if you reuse the same containers across multiple test runs. To do this, edit the testcontainers configuration file
in your home directory, adding the line
. (Just create the file if it doesn't already exist.)

If you already have PostgreSQL installed

If you already have PostgreSQL installed on your machine, you'll just need to create the test database. From the command line, type the following commands:

create database hreact;
create user hreact with password 'hreact';
grant all privileges on database hreact to hreact;

Then run

./gradlew test
from the

If you already have MySQL installed

If you have MySQL installed, you can create the test database using the following commands:

mysql -uroot
create database hreact;
create user hreact identified by 'hreact';
grant all on hreact.* to hreact;

Then run

./gradlew test -Pdb=mysql
from the

If you have Podman

If you have Podman installed, you can start the test database by following the instructions in


We're working hard to support the full feature set of Hibernate ORM. At present a few limitations remain.

Association mappings

At this time, Hibernate Reactive does not support the following mapping features:

  • @ManyToMany
    associations, and
  • one-sided
    associations without

Instead, use

together with
for all associations.

Schema export

Automatic update or validation of an existing database schema requires use of JDBC.


You should not use Hibernate Reactive with a second-level cache implementation which performs blocking IO, for example passivation to the filesystem or distributed replication.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.