HHH-15482 CoercionException in criteria simple case statement

This commit is contained in:
Andrea Boriero 2022-09-11 03:55:13 +02:00 committed by Andrea Boriero
parent e9f09315fa
commit 8d9019e981
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ public class SqmCaseSimple<T, R>
@Override
public JpaSimpleCase<T, R> when(T condition, Expression<? extends R> result) {
//noinspection unchecked
when( nodeBuilder().value( condition, (SqmExpression<T>) result ), (SqmExpression<R>) result );
when( nodeBuilder().value( condition, fixture ), (SqmExpression<R>) result );
return this;
}