From 1cab99146d4cdf0fbfa6f32b286288031db22b63 Mon Sep 17 00:00:00 2001 From: Marco Belladelli Date: Mon, 9 Oct 2023 11:03:28 +0200 Subject: [PATCH] HHH-17292 Correct find subtypes attribute for nested types --- .../hibernate/metamodel/model/domain/AbstractManagedType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }