HHH-17701 Use relational java type when resolving mapping expressibles

This commit is contained in:
Marco Belladelli 2024-02-05 12:20:13 +01:00
parent 6b56b7e737
commit 08db8487b0
No known key found for this signature in database
GPG Key ID: D1D0C3030AE3AA35
1 changed files with 2 additions and 3 deletions

View File

@ -775,12 +775,11 @@ public class MappingMetamodelImpl extends QueryParameterBindingTypeResolverImpl
}
if ( sqmExpressible instanceof BasicDomainType ) {
final BasicDomainType<?> domainType = (BasicDomainType<?>) sqmExpressible;
return getTypeConfiguration().getBasicTypeForJavaType( domainType.getExpressibleJavaType().getJavaTypeClass() );
return getTypeConfiguration().getBasicTypeForJavaType( sqmExpressible.getRelationalJavaType().getJavaType() );
}
if ( sqmExpressible instanceof BasicSqmPathSource<?> ) {
return getTypeConfiguration().getBasicTypeForJavaType(((BasicSqmPathSource<?>) sqmExpressible).getJavaType());
return getTypeConfiguration().getBasicTypeForJavaType( sqmExpressible.getRelationalJavaType().getJavaType() );
}
if ( sqmExpressible instanceof SqmFieldLiteral ) {