org.hibernate.type.EnumType incorrectly logs binded values

Description

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

Attachments

1

Activity

Brett MeyerSeptember 20, 2012 at 11:44 AM

Ivan, thanks for the pull request!

Ivan SopovSeptember 14, 2012 at 12:07 PM

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created July 30, 2012 at 2:55 PM
Updated November 2, 2012 at 4:00 PM
Resolved September 20, 2012 at 11:44 AM