Spring Data JPA is an Object Relational Mapping framework that works as middleware between Java applications and databases.
As part of this interaction, one of the core features is to convert entity CRUD operations into SQL and execute it against the database.
Now before executing these queries, we may have requirements to audit, debug, log, and potentially modify these queries before executing against the database.
Read the below article to learn how to intercept SQL queries and operate over them.
Your link's die. Fix it
Checkout this one https://medium.com/javarevisited/spring-data-jpa-intercepting-sql-query-550784c9cc7f
If you don’t have medium account use this link :
https://medium.com/javarevisited/spring-data-jpa-intercepting-sql-query-550784c9cc7f?sk=048e82a00ee80b061bb57c53bba9de60