diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java b/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java index d593524fc3..7db7746ebe 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java @@ -1614,13 +1614,15 @@ public final class AnnotationBinder { MetadataBuildingContext context, Map inheritanceStatePerClass) throws MappingException { - if ( entityBinder.isPropertyDefinedInSuperHierarchy( inferredData.getPropertyName() ) ) { - LOG.debugf( - "Skipping attribute [%s : %s] as it was already processed as part of super hierarchy", - inferredData.getClassOrElementName(), - inferredData.getPropertyName() - ); - return; + if ( !propertyHolder.isComponent() ) { + if ( entityBinder.isPropertyDefinedInSuperHierarchy( inferredData.getPropertyName() ) ) { + LOG.debugf( + "Skipping attribute [%s : %s] as it was already processed as part of super hierarchy", + inferredData.getClassOrElementName(), + inferredData.getPropertyName() + ); + return; + } } /**