Skip to content

Commit 9390062

Browse files
committed
HHH-10222 - AttributeConverter not applied to @ElementCollection
1 parent 2db30fd commit 9390062

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,15 @@ private void applyAttributeConverter(XProperty property, AttributeConverterDescr
327327
LOG.debugf( "Skipping AttributeConverter checks for Temporal attribute [%s]", property.getName() );
328328
return;
329329
}
330+
if ( key && property.isAnnotationPresent( MapKeyTemporal.class ) ) {
331+
LOG.debugf( "Skipping AttributeConverter checks for map-key annotated as MapKeyTemporal [%s]", property.getName() );
332+
return;
333+
}
330334

331335
if ( !key && property.isAnnotationPresent( Enumerated.class ) ) {
332336
LOG.debugf( "Skipping AttributeConverter checks for Enumerated attribute [%s]", property.getName() );
333337
return;
334338
}
335-
336339
if ( key && property.isAnnotationPresent( MapKeyEnumerated.class ) ) {
337340
LOG.debugf( "Skipping AttributeConverter checks for map-key annotated as MapKeyEnumerated [%s]", property.getName() );
338341
return;

0 commit comments

Comments
 (0)