I need to get the string from an Hibernate query and process it later (so I can\'t solve it with \"hibernate.show_sql\").
\"hibernate.show_sql\"
I have already looked at How t
Another option is to use datasource-proxy which allows to listen to different JDBC events including query execution.
You can implement QueryExecutionListener.beforeQuery that receives QueryInfo with SQL query text and all parameters.
QueryInfo