Jakarta Persistence (JPA) Method
Expression<Y> coalesce(
Expression<? extends Y> x,
Y 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- value
- Returns:
- coalesce expression.
- Since:
- Jakarta Persistence (JPA) 1.0