HHH-11037 - Same named subtype embeddable properties ignored
This commit is contained in:
parent
3028f5d787
commit
62bfbf8bd9
|
@ -1614,13 +1614,15 @@ public final class AnnotationBinder {
|
|||
MetadataBuildingContext context,
|
||||
Map<XClass, InheritanceState> 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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -175,9 +175,7 @@ public class EntityBinder {
|
|||
if ( persistentClass == null ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return inheritanceState.getType() != InheritanceType.JOINED
|
||||
&& persistentClass.isPropertyDefinedInSuperHierarchy( name );
|
||||
return persistentClass.isPropertyDefinedInSuperHierarchy( name );
|
||||
}
|
||||
|
||||
@SuppressWarnings("SimplifiableConditionalExpression")
|
||||
|
|
Loading…
Reference in New Issue