mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-16543 Correct check for polymorphic root common attributes
This commit is contained in:
parent
c6c24700a5
commit
7116dc9def
@ -91,8 +91,8 @@ public SqmPolymorphicRootDescriptor(
|
||||
|
||||
private static boolean isACommonAttribute(List<EntityDomainType<?>> subList, PersistentAttribute<?, ?> attribute) {
|
||||
// for each of its attributes, check whether the other implementors also expose it
|
||||
for ( EntityDomainType navigable : subList ) {
|
||||
if ( navigable.findAttribute( attribute.getName() ) != null ) {
|
||||
for ( EntityDomainType<?> navigable : subList ) {
|
||||
if ( navigable.findAttribute( attribute.getName() ) == null ) {
|
||||
// we found an implementor that does not expose that attribute,
|
||||
// so break-out to the next attribute
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user