Get SQL String from Hibernate query

后端 未结 5 1435
既然无缘
既然无缘 2020-12-17 17:14

I need to get the string from an Hibernate query and process it later (so I can\'t solve it with \"hibernate.show_sql\").

I have already looked at How t

5条回答
  •  一整个雨季
    2020-12-17 18:10

    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.

提交回复
热议问题