coalesce(x, y) - JPA CriteriaBuilder's method
Method javax.persistence.criteria.CriteriaBuilder
Expression<Y> coalesce(
Expression<?> x,
Expression<?> y
)
Create an expression that returns null if all its arguments evaluate to null, and the value of the first non-null argument otherwise.
- Parameters:
-
x
- expressiony
- expression
- Returns:
- coalesce expression
- Since:
- JPA 2.0