DEV Community

Yuri Mednikov
Yuri Mednikov

Posted on

How to configure Hibernate Reactive with Eclipse Vertx 4 (Without XML)

The usage of traditional Java ORM frameworks with Eclipse Vertx is a complicated process, due to the fact that these technologies rely under the hood on the synchronous JDBC API. On the other hand, Vertx is based around the reactive programming model and if software developers would like to use blocking libraries, that are required to perform extra steps. Hibernate Reactive is the first Java ORM solution that natively makes use of Vertx reactive clients and combines advantages of ORM libraries with reactivity and non-blocking patterns.

Typically, Hibernate is configured with XML configuration. This approach is also demonstrated by Hibernate Reactive docs and Vertx How-to website. However, XML configuration should be avoided. In this tutorial I will demonstrate essential patterns of using Hibernate Reactive with Eclipse Vertx 4.x.

The first part demonstrates how to configure Hibernate Reactive with Vertx 4.x programmatically (without any XML).

Top comments (0)