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