Google News
logo
Java Hibernates - Interview Questions
How to log hibernate generated sql queries in log files?
We can set below property for hibernate configuration to log SQL queries.
<property name="hibernate.show_sql">true</property>
However we should use it only in Development or Testing environment and turn it off in production environment.
Advertisement