Skip to content

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

License

Notifications You must be signed in to change notification settings

DND-IT/hibernate-reactive

 
 

Repository files navigation

Hibernate Reactive

This repository is a fork of https://github.com/hibernate/hibernate-reactive.

The reason for the fork is that there is a bug in hibernate-core 6.2.x when used with hibernate-reactive, which is fixed in 6.3.x but the merge of hibernate-core 6.3.x in Micronaut 4 is blocked by hibernate-reactive 2.1.0. The bug originates from a change in hibernate-core 6.2, which changes Java enums to be stored as DB enums, instead of varchars.

This fork adds the least invasive workaround for the bug. This workaround happens to be in hibernate-reactive and not hibernate-core.

Publishing maven artifacts

The forked hibernate-reactive artifacts are published by using Github Pages.

Uploading instructions

  1. clone this repo

    git clone [email protected]:DND-IT/hibernate-reactive.git
  2. compile the project

    ./gradlew compileJava
  3. Build a local directory structure for the maven repository that will be uploaded to Github Pages.

    ./gradlew -Dmaven.repo.local=`pwd`/build/mvn-repo publishToMavenLocal
  4. Upload the maven repository to Github Pages.

    ./gradlew gitPublishPush
  5. Configure the dependent projects/modules:

    <repository>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <id>dnd-it-hibernate-reactive</id>
        <url>https://dnd-it.github.io/hibernate-reactive/</url>
    </repository>
    • Add the dependency:

      <dependencyManagement>
          <dependencies>
              <dependency>
                  <groupId>org.hibernate.reactive</groupId>
                  <artifactId>hibernate-reactive-core</artifactId>
                  <version>CUSTOM_VERSION</version>
              </dependency>
          </dependencies>
      </dependencyManagement>

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%