I was able the get the below log
Hibernate: insert into ORGANIZATIONALUNITCATALOG (ID, SYSTEMID) values (null, ?)
[main] DEBUG org.hibernate.type.LongType - binding '0' to parameter: 1
after specifying the log4j properties as
log4j.logger.org.hibernate.sql=DEBUG
log4j.logger.org.hibernate.type=DEBUG
Is there a way to tell hibernate 3.2.x to show the binding column name instead of the column number? i.e. I’d like to see the log line as
[main] DEBUG org.hibernate.type.LongType - binding '0' to parameter: SYSTEMID
log4j.logger.org.hibernate.type=TRACEshould do it.If you still have problems, try enabling trace on these too
In addition make sure you have TRACE logging enabled in your config. Many times default config files will set logging at DEBUG as the lowest.