hibernate show real sql
Posted
by tommaso
on Stack Overflow
See other posts from Stack Overflow
or by tommaso
Published on 2010-03-29T09:17:21Z
Indexed on
2010/03/29
9:23 UTC
Read the original article
Hit count: 338
Hi all,
if I set
<property name="show_sql">true</property>
in my hibernate.cfg.xml configuration file in the console I can see the sql.
But it's not REAL sql... Can I see the SQL code that will be passed directly to database?
Example:
I see
select this_.code from true.employee this_ where this_.code=?
Can I see
select employee.code from employee where employee.code=12
the real sql?
thanks!
© Stack Overflow or respective owner