Tag: jpa

How to Audit JPA Entities Using Envers in a Spring Boot Application

In this tutorial, we will walk through the process of setting up auditing for JPA entities using Envers in a Spring Boot application. We will create an example Spring Boot project, define JPA entities, configure Hibernate Envers, and demonstrate how to retrieve audit information from the database. In modern applications, tracking data changes is crucial, especially in critical systems handling...

READ MORE How to Audit JPA Entities Using Envers in a Spring Boot Application

Joining Unrelated Entities with JPA and Hibernate in Spring Boot

In this tutorial, we will explore how to join unrelated entities using JPA (Java Persistence API) and Hibernate in a Spring Boot application. The process of joining unrelated entities allows us to retrieve data from different tables that have no direct association using a single database query. By the end of this tutorial, you will have a better understanding of...

READ MORE Joining Unrelated Entities with JPA and Hibernate in Spring Boot