However, sometimes you even want to debug why Hibernate is generating queries which seem redundant or less performant.
For such cases, it is helpful to debug the source code of Hibernate itself.
And this can be done by putting a breakpoint at
Putting a breakpoint on the above makes it very easy to see the place from where the
query is being generated actually and can be a boon in debugging.
Additionally, If you think something is really wrong with Hibernate, you can even submit a patch request to Hibernate!
Got a thought to share or found a bug in the code? We'd love to hear from you: