Is it possible to log not HQL queries but final queries when using hibernate. I mean, the one that is sent to the database. I've tried different log level but I haven't seen it. And in my opinion it would be useful to debug some issues.
Thank you very much.
Yes, it's possible. That's what the
hibernate.show_sql
property does. You may also have finer control using the logging configuration: