ObjectDB ObjectDB

nullif(x, y) - JPA CriteriaBuilder's method

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 - expression
y - expression
Returns:
nullif expression
Since:
JPA 2.0