Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Hibernate Hydrate

Build Status Maven Central

The primary goal of the Hibernate Hydrate project is to populate a graph of persistent entities and thus avoid the famous LazyInitializationException.


  • Utility class to populate a lazy-initialized object graph by recursivity
  • Supports JPA with Hibernate as provider
  • Supports third Hibernate 3.x, Hibernate 4.x and Hibernate 5.x

Getting Help

This readme file as well as the wiki are the best places to start learning about Hibernate Hydrate. There are also unit tests available to look at.

The wiki contains links to basic project information such as source code, jenkins build, javadocs, issue tracking, etc.

A french article titled Say goodbye to LazyInitializationException :

Quick Start

Download the jar though Maven:

<!-- Either Hibernate 6 and above support -->

<!-- or Hibernate 5.2 and above support -->

<!-- or Hibernate 5.0 and 5.1 support -->

<!-- or Hibernate 4 support -->

<!-- Or Hibernate 3 support -->

Hibernate Hydrate artefacts are available from Maven Central

Maven Central

Contributing to Hibernate Hydrate

  • Github is for social coding platform: if you want to write code, we encourage contributions through pull requests from forks of this repository. If you want to contribute code this way, please reference a GitHub ticket as well covering the specific issue you are addressing.
  • Each major version of Hibernate has it own git branch: Hibernate 5 on the master, Hibernate 4 on the hibernate4 branch and Hibernate 3 on the hibernate3 branch

Development environment installation

Download the code with git:

git clone git://

Compile the code with maven:

mvn clean install

If you're using an IDE that supports Maven-based projects (InteliJ Idea, Netbeans or m2Eclipse), you can import the project directly from its POM. Otherwise, generate IDE metadata with the related IDE maven plugin:

mvn eclipse:clean eclipse:eclipse


This project artefact is published to Maven Central. The Maven Release Plugin is used to release the project with Maven. The release.yml GitHub Actions workflow automates the process.


Build Status

GitHub Actions: Java CI