I am currently working on Simple Bulletin project and new to Hibernate/JPA/Spring data JPA.
While working on the Spring data Jpa’s deleteAll() code,
I noticed
deleteAll() executes select and delete query each.
For example, when there are 1000 rows in Table, then 1000 select and 1000 delete query executes.
In order to effectively exectue the query I want to execute,
I have to use @Modify/@Query JPQL.
So, the thing I want to know is this.
Is there an official document of how the JPA / Spring Data JPA function actually exectues the query before executing?
Like, is there an JPA / Hibernate /Spring Data JPA’s document about it?
Or is there any way to know the executing query before executing in code?
I have looked at the spring data’s jpa document, and I couldn’t find it.
Thank you in advance.