The Java EE 6 Tutorial, Volume I

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 21–7 AND Operator Logic

AND 

Table 21–8 OR Operator Logic

OR