HHH-10222 - AttributeConverter not applied to @ElementCollection

(cherry picked from commit 9390062abc)
This commit is contained in:
Steve Ebersole 2015-10-28 23:05:35 -05:00
parent 7cbb8570c4
commit 2f48de342b
1 changed files with 4 additions and 1 deletions

View File

@ -322,12 +322,15 @@ public class SimpleValueBinder {
LOG.debugf( "Skipping AttributeConverter checks for Temporal attribute [%s]", property.getName() );
return;
}
if ( key && property.isAnnotationPresent( MapKeyTemporal.class ) ) {
LOG.debugf( "Skipping AttributeConverter checks for map-key annotated as MapKeyTemporal [%s]", property.getName() );
return;
}
if ( !key && property.isAnnotationPresent( Enumerated.class ) ) {
LOG.debugf( "Skipping AttributeConverter checks for Enumerated attribute [%s]", property.getName() );
return;
}
if ( key && property.isAnnotationPresent( MapKeyEnumerated.class ) ) {
LOG.debugf( "Skipping AttributeConverter checks for map-key annotated as MapKeyEnumerated [%s]", property.getName() );
return;