The Java EE 6 Tutorial

NULL Values

If the target of a reference is not in the persistent store, the target is NULL. For conditional expressions containing NULL, the query language uses the semantics defined by SQL92. Briefly, these semantics are as follows.

Table 22–7 AND Operator Logic

AND 

Table 22–8 OR Operator Logic

OR