Find all orders that contain lineitems The ans gievn in mastering
EJB was :-
Select object(o) from orders o in(o.lineitems) l
Is this correct... ???
I answered:-
Select object(o) from orders o where o.lineitems IS NOT EMPTY.
Now, which one is correct..I am confused with both answers

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA