• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to show hibernate sql parameter values, instead of ?,?

 
rusdem e zal´┐Ż
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hibernate.show_sql=true
and it shows the created SQL statements, but not the parameter values.
is there a way?
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add these lines to your log4j.xml file:

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or alternatively have a look at P6Spy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic