HHH-17292 Correct find subtypes attribute for nested types

This commit is contained in:
Marco Belladelli 2023-10-09 11:03:28 +02:00
parent b5d26d19c1
commit 79d6bc9b01
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}