CriteriaBuilder.SimpleCase<C,R> when(
C condition,
Expression<?extendsR> result
)
Add a when/then clause to the case expression.
- Parameters:
condition
- "when" conditionresult
- "then" result expression
- Return:
- simple case expression
- Since:
- JPA 2.0