HHH-15742 Always return inferred mapping for is-null clauses

This commit is contained in:
Marco Belladelli 2022-12-05 12:10:16 +01:00 committed by Christian Beikov
parent cdfbc58bb9
commit e088738687
1 changed files with 3 additions and 5 deletions

View File

@ -5393,11 +5393,9 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
return resolveEntityPersister( (EntityDomainType<?>) type );
}
}
else if ( parameterJavaType.isEnum() ) {
//inferredMapping is JavaObjectType and we cannot deduct the t
if ( inferredMapping != null ) {
return inferredMapping;
}
else if ( inferredMapping != null ) {
// inferredMapping is JavaObjectType and we cannot deduct the type
return inferredMapping;
}
}
return basicTypeForJavaType;