Enabling Hibernate SQL Statement logging in application source code
The first way is to explicitly enable it in your code. SessionFactory sf = new Configuration() .setProperty("hibernate.show_sql", "true") // ... .buildSessionFactory();