diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/AbstractManagedType.java b/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/AbstractManagedType.java index 7c6ddcd80e..4a45210b73 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/AbstractManagedType.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/AbstractManagedType.java @@ -187,7 +187,7 @@ public abstract class AbstractManagedType } for ( ManagedDomainType subType : subTypes ) { - final PersistentAttribute subTypeAttribute = subType.findAttribute( name ); + final PersistentAttribute subTypeAttribute = subType.findSubTypesAttribute( name ); if ( subTypeAttribute != null ) { return subTypeAttribute; }