Expression<Y> nullif(
Expression<Y> x,
Expression<?> y
)
Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.
- Parameters:
x
- expressiony
- expression
- Return:
- nullif expression
- Since:
- JPA 2.0