diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java b/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java index 41e3ff2012..14ac912d21 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java @@ -328,6 +328,11 @@ public class SimpleValueBinder { return; } + if ( key && property.isAnnotationPresent( MapKeyEnumerated.class ) ) { + LOG.debugf( "Skipping AttributeConverter checks for map-key annotated as MapKeyEnumerated [%s]", property.getName() ); + return; + } + if ( isAssociation() ) { LOG.debugf( "Skipping AttributeConverter checks for association attribute [%s]", property.getName() ); return;