How do I get hibernate to fully log all details when an exception is thrown? I would like to see the full (not truncated) sql and the full (not truncated) parameters.
ie Hibernate is throwing:
Caused by: org.hibernate.exception.DataException: could not execute statement
long stack trace
Caused by: java.sql.SQLDataException: Incorrect string value:
Query is: blah blah blah ...
I don't want to see any "..." there. I want to see the full sql and the full parameter list.
This is an unchecked exception. What is the configuration needed for this (and any other hibernate exceptions) to be fully logged?
As this is production code I would prefer not changing the jdbc driver to net.sf.log4jdbc.DriverSpy
(Left out the truncated sql + parameters for clarity)