如果我订
<property name="show_sql">true</property>
Run Code Online (Sandbox Code Playgroud)
在我的控制台的hibernate.cfg.xml配置文件中,我可以看到SQL.
但它不是真正的 SQL ......我能看到将直接传递给数据库的SQL代码吗?
例:
我知道了
select this_.code from true.employee this_ where this_.code=?
Run Code Online (Sandbox Code Playgroud)
我可以看吗
select employee.code from employee where employee.code=12
Run Code Online (Sandbox Code Playgroud)
在真正的 SQL?
在Hibernate中是否可以使用实际值而不是问号来打印生成的SQL查询?
如果使用Hibernate API无法打印具有实际值的查询,您会建议如何?