when(condition, result) - JPA CriteriaBuilder.Case's method
Method javax.persistence.criteria.CriteriaBuilder.Case
Case<R> when(
Expression<Boolean> condition,
R result
)
Add a when/then clause to the case expression.
- Parameters:
-
condition
- "when" conditionresult
- "then" result value
- Returns:
- general case expression
- Since:
- JPA 2.0