There are two ways (due to the legacy of Hibernate) to enable SQL logging. The first is to simply enable SQL logging in the Hibernate configuration properties by setting the hibernate.show_sql property to true
There are two ways (due to the legacy of Hibernate) to enable SQL logging. The first is to simply enable SQL logging in the Hibernate configuration properties by setting the hibernate.show_sql property to true
Hibernate is a popular Java Object-Relational mapping tool (as if you didn't already know that!) . For debugging purposes you may want to see the actual SQL, including parameter values, that Hibernate sends to the database.