
Vinayak P. answered 04/11/20
Senior Software Engineer specializing in Java
If you want to see the SQL sent directly to the database (that is formatted similar to your example), you'll have to use some kind of jdbc driver proxy like P6Spy (or log4jdbc).
Alternatively you can enable logging of the following categories (using a log4j.properties
file here):
The first is equivalent to hibernate.show_sql=true
, the second prints the bound parameters among other things.