diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmCriteriaNodeBuilder.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmCriteriaNodeBuilder.java index 192786f941..caedf16dc8 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmCriteriaNodeBuilder.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmCriteriaNodeBuilder.java @@ -1268,7 +1268,6 @@ public class SqmCriteriaNodeBuilder implements NodeBuilder, SqmCreationContext, @Override public JpaCriteriaParameter parameter(Class paramClass, String name) { - final BasicType basicType = getTypeConfiguration().getBasicTypeForJavaType( paramClass ); if ( basicType == null ) { final BindableType parameterType; @@ -1279,12 +1278,7 @@ public class SqmCriteriaNodeBuilder implements NodeBuilder, SqmCreationContext, else { parameterType = null; } - return new JpaCriteriaParameter<>( - name, - parameterType, - true, - this - ); + return new JpaCriteriaParameter<>( name, parameterType, true, this ); } else { return new JpaCriteriaParameter<>( name, basicType, false, this );