Looks like this commit has added the issue. Most likely, the issue was not detected because the log level is not set to debug.
Try setting it to debug:
log4j.logger.org.hibernate.cfg=debug