Modern Hibernate/JPA for Java 17+ — typed repositories, HikariCP pooling, Flyway migrations, and specifications for Minecraft plugins, Spring Boot & standalone Java.
JEHibernate is a Hibernate/JPA utility library for Java 17+. It wraps Hibernate ORM with a small, fluent API — repositories, specifications, pooling, and schema migration — and removes most of the boilerplate you would otherwise write by hand.It was built for the Minecraft plugin lifecycle (async work that never touches the main thread, cached lookups, session-scoped loading), but it carries no plugin assumptions into your code. The same core runs unchanged in a Paper plugin, a Spring Boot service, or a plain Java process.
The modules
JEHibernate 4 is a multi-module build. You depend on the parts you need, nothing more.
Module
Use it for
jehibernate-core
The library — repositories, sessions, pooling, migration. Required.
jehibernate-spring-boot
Spring Boot auto-configuration that reuses your DataSource bean.
jehibernate-plugin
Spigot/Paper convenience (config from the plugin data folder).
jehibernate-testing
Testcontainers integration and fixtures, for tests only.
All four are published to Maven Central under the group de.jexcellence.hibernate.
Where it runs
JEHibernate runs on Spigot, Paper, Folia, Spring Boot, and standalone Java. It requires Java 17 or newer (virtual threads are enabled automatically on Java 21+), Hibernate 7.x, and Jakarta Persistence 3.1+.
What it gives you
Typed repositories — extend one class and get CRUD, batch, async, and paginated operations.
A real connection pool — HikariCP is owned and bounded, with runtime health you can read.
Migrations own the schema — Flyway (or Liquibase) runs before Hibernate boots; ddl-auto defaults to validate.
Specifications and EntityGraphs — compose type-safe queries and fetch associations without N+1.
Optional power — Envers audit, multi-tenancy, and a Spring Boot test slice, all off until you ask for them.
New here?
Start with Getting Started — it has a copy-paste quickstart for a plugin, a Spring Boot service, and standalone Java.
Once you have the dependency in place, the next page takes you from an empty project to a working repository in under twenty lines.