If you are using JPA and Hibernate, this tool can auto-detect N+1 query issues during testing.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

License Maven Central JavaDoc

Introduction

This library contains all sorts of DB utilities like:

  • Optimistic Concurrency Retry
  • JPA SQL statement count validator

Installation

You can get the framework from Maven Central by using the following dependency:

<dependency>
    <groupId>com.vladmihalcea</groupId>
    <artifactId>db-util</artifactId>
    <version>1.0.4</version>
</dependency>

User guide

You can find usage examples on my blog:

If you like it, you are going to love my book as well!

High-Performance Java Persistence