Who knows the "Sharpen your pencil" answers? I can't find them on the Oreilly web site.
Circle the EJB-QL statement if it has a legal SELECT clause SELECT OBJECT (m) FROM MovieSchema m SELECT m.title FROM MovieSchema m SELECT m from MovieSchema m SELECT OBJECT (m.title) FROM MovieSchema m
Thanks in advance.
I not only use all the brains that I have, but all that I can borrow. [Laurence J. Peter]
Circle the EJB-QL statement if it has a legal SELECT clause SELECT OBJECT (m) FROM MovieSchema m - ok SELECT m.title FROM MovieSchema m - ok SELECT m from MovieSchema m - not ok - must use OBJECT(m) SELECT OBJECT (m.title) FROM MovieSchema m - not ok, OBJECT can't use cmp or cmr field
Basically if you use Object only when you want the every thing in the abstract schema (instead of field) to return. Note that it is case INsensitve.