Hibernate显示真实的SQL

Hibernate显示真实的SQL

如果我

<property name="show_sql">true</property>

在我的Hibernate.cfg.xml在控制台中我可以看到SQL的配置文件。

但这不是真品SQL.。我能看到将直接传递给数据库的SQL代码吗?

例子:

我明白了

select this_.code from true.employee this_ where this_.code=?

我能看看

select employee.code from employee where employee.code=12

这个真品SQL?


饮歌长啸
浏览 1063回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java
MySQL