Fixing Logging issues with hibernate-statements