Java Newsletter

Java Newsletter

Share this post

Java Newsletter
Java Newsletter
Spring Data JPA: Intercepting SQL Query
Copy link
Facebook
Email
Notes
More

Spring Data JPA: Intercepting SQL Query

Suraj Mishra
Oct 5, 2023
1

Share this post

Java Newsletter
Java Newsletter
Spring Data JPA: Intercepting SQL Query
Copy link
Facebook
Email
Notes
More
3
  • 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.

    https://asyncq.com/spring-data-jpa-intercepting-sql-query

3 Comments
User's avatar
BambooDev's avatar
BambooDev
Mar 2

Your link's die. Fix it

Expand full comment
Reply (1)
Share
Suraj Mishra's avatar
Suraj Mishra
Mar 2

Checkout this one https://medium.com/javarevisited/spring-data-jpa-intercepting-sql-query-550784c9cc7f

Expand full comment
Reply (1)
Share
Suraj Mishra's avatar
Suraj Mishra
Mar 2

If you don’t have medium account use this link :

https://medium.com/javarevisited/spring-data-jpa-intercepting-sql-query-550784c9cc7f?sk=048e82a00ee80b061bb57c53bba9de60

Expand full comment
Reply
Share
© 2025 Suraj Mishra
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More