posted 20 years ago
Hi Bert
I was going through your Head First Book. In Entity bean mock exam session i have one confusion in ques 12 which says
Given CMP beans CustomerBean,OrderBean, and LineItemsBean with the following relationships:
CustomerBean(1) ---- OrderBean(n)
OrderBean(1) ----- LineItemsBean(n)
Which will return all orders that have line items?
The answer given are
B. SELECT DISTINCT OBJECT(o) FROM Order o,IN(o.lineItems)li
D. SELECT OBJECT(o) FROM Order o.
How can D be right because D will return even those orders taht have no line items??
Plz clarify if possible
Thanks
kundan
SCJP1.4,SCBCD,SCEA,CNA
Failures are practice shoots for success.