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 ebb90d0b8c..71fecb49cf 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 @@ -327,12 +327,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;