mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
HHH-15482 CoercionException in criteria simple case statement
This commit is contained in:
parent
e9f09315fa
commit
8d9019e981
@ -196,7 +196,7 @@ public JpaSimpleCase<T, R> when(T condition, R result) {
|
|||||||
@Override
|
@Override
|
||||||
public JpaSimpleCase<T, R> when(T condition, Expression<? extends R> result) {
|
public JpaSimpleCase<T, R> when(T condition, Expression<? extends R> result) {
|
||||||
//noinspection unchecked
|
//noinspection unchecked
|
||||||
when( nodeBuilder().value( condition, (SqmExpression<T>) result ), (SqmExpression<R>) result );
|
when( nodeBuilder().value( condition, fixture ), (SqmExpression<R>) result );
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user