HHH-17292 Correct find subtypes attribute for nested types
This commit is contained in:
parent
7678996bef
commit
1cab99146d
|
@ -187,7 +187,7 @@ public abstract class AbstractManagedType<J>
|
|||
}
|
||||
|
||||
for ( ManagedDomainType<? extends J> subType : subTypes ) {
|
||||
final PersistentAttribute<?,?> subTypeAttribute = subType.findAttribute( name );
|
||||
final PersistentAttribute<?,?> subTypeAttribute = subType.findSubTypesAttribute( name );
|
||||
if ( subTypeAttribute != null ) {
|
||||
return subTypeAttribute;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue