Hibernate Reactive 1.0.0.CR10 is now available!

This release adds support for automatic schema validation and update for MySQL, Db2 and MS SQL Server. We’ve also changed the openSession and openStateless methods for the creation of a new session, so you might see some compilation errors after the upgrade.

A complete list of changes is available on the Hibernate Reactive issue tracker.

Thanks a lot!

How can I get it?

All details are available on the Hibernate Reactive website releases page.

If you are new to Hibernate Reactive, the official documentation is a good place to start.

Changes to openSession and openStatelessSession

These are the methods we changed to open a new Mutiny.Session or Mutiny.StatelessSession:

  • Uni<Session> openSession();

  • Uni<Session> openSession(String tenantId);

  • Uni<StatelessSession> openStatelessSession();

  • Uni<StatelessSession> openStatelessSession(String tenantId);

The difference is that they used to return a Mutiny.Session or Mutiny.StatelessSession (we applied similar changes to Stage.Session and Stage.StatelessSession).

This is an example of the code you could write before this release:

Mutiny.Session session = sessionFactory.openSession();
session.find(Book.class, id)
       .invoke(book -> ... /* do something with the book */)

And this is how the same code looks like now:

Uni<Mutiny.Session> sessionUni = sessionFactory.openSession();
sessionUni.chain(session -> session.find(Book.class, id)
                .invoke(book -> ... /* do something with the book */)

The same apply for openSession in Stage.SessionFactory.

If you are interested to the whole discussion we had about this change, you can check the relative issue on GitHub.

Feedback, issues, ideas?

To get in touch, use the following channels:

Back to top