Reputation: 21
I want to learn more about Spring JPA and what happens under the hood when a native JPA query (using PostgreSQL) is defined and called in a Repository class. I have tried searching online but all posts are related to defining and using native queries.
I am more interested to learn about what happens when my SpringBoot application calls a method that is annotated with @Query. I am mainly looking into this to try and understand the performance of executing such a query within Java.
Can anyone point me to a resource which goes in depth on what exactly happens under the hood when using Spring JPA?
Upvotes: 2
Views: 1232
Reputation: 81882
Can anyone point me to a resource which goes in depth on what exactly happens under the hood when using Spring [DATA] JPA?
The authoritative source for this kind of information is the source. Let me point you to some places of interest.
Basically the following happens:
EntityManager
.Upvotes: 1
Reputation: 369
For example, in application.properties
:
logging.level.org.springframework.data.jpa=debug
logging.level.org.hibernate=debug
Upvotes: 0