Get SQL String from Hibernate query

后端 未结 5 1436
既然无缘
既然无缘 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:09

    There is a tool called p6spy. It's a bit older and I am afraid it isn't maintained anymore. It gave me good results in the past, anyway.

    Edit: just found that it is being actively developed again. Works like a charm for me!

提交回复
热议问题