The Java EE 5 Tutorial

NULL Values

If the target of a reference is not in the persistent store, then 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 27–6 AND Operator Logic

AND 

Table 27–7 OR Operator Logic

OR