<Hibernate Statistics not counting the queryExecut...
# stackoverflow
r
Hibernate Statistics not counting the queryExecutionCount as expected With my code I am enforcing the n + 1 problem in a many-to-one relationship between my entities. To check for the n + 1 problem to be present I set up a Test. When running the tests I can also see that there are 3 queries executed, but still hibernates statistics returns 1 query to have been executed. That is obviously wrong. flush and clearing the entity manager in my test also should prevent caching issues. This are the logs from the test: *Hibernate: insert into shelter (name,id) values...