HHH-15395 HibernateCriteriaBuider#power(Expression<? extends Number> x, Number y) throws ClassCastException

This commit is contained in:
Andrea Boriero 2022-07-13 11:35:05 +02:00 committed by Andrea Boriero
parent d8636470ca
commit 059a63e9ba
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@ public class SqmCriteriaNodeBuilder implements NodeBuilder, SqmCreationContext,
@Override @Override
public JpaExpression<Double> power(Expression<? extends Number> x, Number y) { public JpaExpression<Double> power(Expression<? extends Number> x, Number y) {
return getFunctionDescriptor( "power" ).generateSqmExpression( return getFunctionDescriptor( "power" ).generateSqmExpression(
Arrays.asList( (SqmExpression<?>) x, (SqmExpression<?>) y), Arrays.asList( (SqmExpression<?>) x, value( y ) ),
null, null,
queryEngine, queryEngine,
getJpaMetamodel().getTypeConfiguration() getJpaMetamodel().getTypeConfiguration()