Is there a way to write tests to validate the Hibernate-generated queries?

This page summarizes the projects mentioned and recommended in the original post on /r/java

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • jfrunit

    A JUnit extension for asserting JDK Flight Recorder events

  • What is a good, efficient query in terms of an automated unit test? If you look into something like regressions suffering from n+1 queries you could look into jfrunit (I’m only aware of it, never had the chance to use it so far).

  • hypersistence-optimizer

    Hypersistence Optimizer allows you to get the most out of JPA and Hibernate. By scanning your application configuration and mappings, Hypersistence Optimizer can tell you what changes you need to do to speed up your data access layer.

  • Yes, you can use Hypersistence Optimizer to validate your JPA and Hibernate mappings, configs, queries, transactions, and entity actions.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • hibernate-query-asserts

    Assert SQL statement count generated by Hibernate in Spring tests

  • jplusone

    Tool for automatic detection and asserting "N+1 SELECT problem" occurences in JPA based Spring Boot Java applications and finding origin of JPA issued SQL statements in general

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts