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.
Yes, indeed, every word in the question matters ! But don't get afraid of the real exam, the questions are not made as tricky as can be, most of them are really clear and just test your knowledge, not your trick-awareness...