0 votes
in Hibernate by

How can you view the Hibernate-generated SQL on a console?

1 Answer

0 votes
by
To enable viewing SQL on a console for debugging purposes, you must add the following in the Hibernate configuration file:

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