Apr 13, 2010 hibernate p6spy SQL Debugging Hibernate generated SQL In this article, I will explain how to debug Hibernate’s generated SQL so that unexpected query results be traced faster either to a faulty dataset or a bug in the query.