org.hibernate.type.EnumType is full of such logging:
LOG.tracev( "Returning '{0}' as column {1}", name, names[0] );
This leads to the following output:
[EnumType] [TRACE]: Binding {0} to parameter: 1
Excepcted:
[EnumType] [TRACE]: Binding VALUE to parameter: 1
Possible fix, change to
LOG.tracev( "Returning {0} as column {1}", name, names[0] );
Test case in the attachment or you may view it on Github: https://github.com/isopov/hibernate-logging-enum-test
|