HHH-11037 - Same named subtype embeddable properties ignored
(cherry picked from commit 62bfbf8bd9
)
Conflicts:
hibernate-core/src/main/java/org/hibernate/cfg/annotations/EntityBinder.java
This commit is contained in:
parent
840258a00e
commit
f446b0a35e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue