READ Free Dumps For Oracle- 1z0-898
Question ID 4600 | A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two) |
Option A | A. The query MUST define a query root. |
Option B | B. The query MUST define a query root only if it navigates to related entities. |
Option C | C. The query MUST NOT define multiple query roots. |
Option D | D. The query may define multiple query roots. |
Correct Answer | B,D |
Question ID 4601 | Which of the following Criteria query snippets demonstrates the correct way to create and execute strongly typed queries? Assume that cb references an instance of the CriteriaBuilder interface and em references an EntityManager instance. |
Option A | A. CriteriaQuery <office> cq = cb.createQuery (Office.class); . . . |
Option B | B. CriteriaQuery cq = cb.createQuery (Office.class) |
Option C | C. CriteriaQuery<office> cq = em.createQuery (cq, office.class); . . . |
Option D | D. CriteriaQuery <office> cq = cb.createQuery (Office.class); . . . |
Correct Answer | D |