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