Which will return all orders that have line items? (Choose all that apply.)
A. SELECT DISTINCT o FROM Order.o, IN (o.lineItems) li B. SELECT DISTINCT OBJECT(o) FROM Order o, IN (o.lineItems) li C. SELECT OBJECT(o) FROM Order o WHERE o.lineItems = 0 D. SELECT OBJECT(o) FROM Order o
For Question 4 only A should be correct cause with Unidirectional CMR Bar won't have a getFoo() method.
For Question 12 only B should be correct cause that will return all lineItems in Order.
In the book, question 4 has A and B as correct and question 12 has B and D correct.
Yeah, there have been quite a few posts about this question -- mainly being that some of the answer choices are syntactically invalid (won't compile). All this of course having to do with the directional nature of the association. Good eye.
Thanks for your help guys. I guess I should have done a search of the board first, but it slipped my mind.
With regard to the specs are they available in a printed form? I've downloaded them from the web, but never refer to it cause I find it easier to read up and search for things from a book. I'm thinking it might be easier to get used to reading up from electronic versions though!
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop