I have a drag and drop question in mock exam 1 :
The drag and drop selection is underlined.
Select c from Customer c Left Join c.orders o WHERE c.status=1
Select the CriteriaQuery code equivalent to the above query:
Answer:
Root q = cb.createQuery(Customer.class)
CriteriaQuery customer = q.from (Customer.class)
Join order = ....
I think the answer should be:
CriteriaQuery q = cb.createQuery (Customer.class)
Root customer = q.from(Customer.class)