diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmUtil.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmUtil.java index e99421e1a5..33421318e4 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmUtil.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmUtil.java @@ -221,14 +221,9 @@ public class SqmUtil { continue; } if ( !domainParamBinding.isBound() ) { - final MappingModelExpressible mappingExpressible = SqmMappingModelHelper.resolveMappingModelExpressible( - sqmParameter, - domainModel, - tableGroupLocator - ); for ( int i = 0; i < jdbcParamsBinds.size(); i++ ) { final List jdbcParams = jdbcParamsBinds.get( i ); - mappingExpressible.forEachJdbcType( + parameterType.forEachJdbcType( (position, jdbcType) -> { jdbcParameterBindings.addBinding( jdbcParams.get( position ),