HHH-16543 Correct check for polymorphic root common attributes
This commit is contained in:
parent
46974a9c1e
commit
6a64652f42
|
@ -91,8 +91,8 @@ public class SqmPolymorphicRootDescriptor<T> implements EntityDomainType<T> {
|
||||||
|
|
||||||
private static boolean isACommonAttribute(List<EntityDomainType<?>> subList, PersistentAttribute<?, ?> attribute) {
|
private static boolean isACommonAttribute(List<EntityDomainType<?>> subList, PersistentAttribute<?, ?> attribute) {
|
||||||
// for each of its attributes, check whether the other implementors also expose it
|
// for each of its attributes, check whether the other implementors also expose it
|
||||||
for ( EntityDomainType navigable : subList ) {
|
for ( EntityDomainType<?> navigable : subList ) {
|
||||||
if ( navigable.findAttribute( attribute.getName() ) != null ) {
|
if ( navigable.findAttribute( attribute.getName() ) == null ) {
|
||||||
// we found an implementor that does not expose that attribute,
|
// we found an implementor that does not expose that attribute,
|
||||||
// so break-out to the next attribute
|
// so break-out to the next attribute
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue