Asked • 04/24/19

Hibernate show real SQL?

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?

1 Expert Answer

By:

Vinayak P. answered • 04/11/20

Tutor
5 (6)

Senior Software Engineer specializing in Java

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.