These configs are handy to log Hibernate SQLs and parameters using log4j.
log4j.logger.org.hibernate.SQL=DEBUG
log4j.logger.org.hibernate.type=TRACE
log4j.logger.org.hibernate.bind=DEBUG
log4j.logger.org.hibernate.pretty=DEBUG
log4j.additivity.org.hibernate.SQL=true (optional)
log4j.logger.org.hibernate.SQL=DEBUG
log4j.logger.org.hibernate.type=TRACE
log4j.logger.org.hibernate.bind=DEBUG
log4j.logger.org.hibernate.pretty=DEBUG
log4j.additivity.org.hibernate.SQL=true (optional)