Login
Remember
Register
Ask a Question
How can you view the Hibernate-generated SQL on a console?
0
votes
asked
Jul 27, 2024
in
Hibernate
by
SakshiSharma
How can you view the Hibernate-generated SQL on a console?
hibernate-generated
sql
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 27, 2024
by
SakshiSharma
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>
...