How to log values that Hibernate binds to prepared statements?

Viewed 6672

How can I make Hibernate log the values it binds to prepared statements?

If I set property hibernate.show_sql=true I get following kind of logging:

insert into tablename (field1, field2) values (?, ?)

I'd like also to know what values are bound to question marks.

I am using Hibernate 3.2.7.ga.

1 Answers
Related