Yes, folks, it IS time to be getting back to work toward the *real* exam.
Here are two little EJBQL questions.
The *real* exam will tell you how many answers are correct, but since we want to make things a little more challenging, we won't tell you.
================================
1) Which is a valid EJBQL query? (check all that apply, at least one is correct)
A) SELECT OBJECT(o)
FROM Order o
B) SELECT OBJECT(o)
FROM Order o
WHERE o < 100
C) SELECT o.order
FROM Customer customer
D) SELECT DISTINCT OBJECT(o)
FROM Order o
WHERE o.lineItems IS NOT EMPTY
E) SELECT c.customer
FROM Customer AS c
F) SELECT OBJECT(o)
FROM Customer AS foo, IN(foo.things)
=====================
2) Which statement (or statements) about EJBQL is correct? (check all that apply, at least one is correct)
A) The FROM clause is required
B) The WHERE clause is required
C) Duplicate values may be returned from an EJBQL query
D) You may define EJBQL for the implementation of your home business methods.
E) If a query is for a finder method, the result of the finder MUST be the bean's local interface.
Have fun,
Kathy