Jakarta Persistence (JPA) Method
Case<R> when(
Expression<Boolean> condition,
R result
)
Add a when/then clause to the case expression.
- Parameters:
result- "then" result valuecondition- "when" condition
- Returns:
- general case expression.
- Since:
- Jakarta Persistence (JPA) 1.0