• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to see the query that hibernate generates?

 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using criteria and I want to see whats the query that hibernate generates.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the hibernate.show_sql property in hibernate config file to true
 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the following line to your hibernate-config file
<property name="show_sql">false</property>
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rahul khanna:
Add the following line to your hibernate-config file
<property name="show_sql">false</property>


Hmm. I think Jaikiran Pai's advice might be more useful
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic