HHH-15742 Always return inferred mapping for is-null clauses
This commit is contained in:
parent
cdfbc58bb9
commit
e088738687
|
@ -5393,13 +5393,11 @@ 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 ) {
|
||||
else if ( inferredMapping != null ) {
|
||||
// inferredMapping is JavaObjectType and we cannot deduct the type
|
||||
return inferredMapping;
|
||||
}
|
||||
}
|
||||
}
|
||||
return basicTypeForJavaType;
|
||||
}
|
||||
throw new ConversionException( "Could not determine ValueMapping for SqmParameter: " + sqmParameter );
|
||||
|
|
Loading…
Reference in New Issue