Valid 1Z0-898 Dumps shared by ExamDiscuss.com for Helping Passing 1Z0-898 Exam! ExamDiscuss.com now offer the newest 1Z0-898 exam dumps, the ExamDiscuss.com 1Z0-898 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1Z0-898 dumps with Test Engine here:
A developer wants to write a type-safe Criteria API query. Which two of the following statements true about Criteria query roots? (Choose two)
Correct Answer: B,D
Explanation/Reference: B: Query Roots For a particular CriteriaQueryobject, the root entity of the query, from which all navigation originates, is called the query root. It is similar to the FROM clause in a JPQL query. D: Criteria queries may have more than one query root. This usually occurs when the query navigates from several entities. The following code has two Root instances: CriteriaQuery<Pet> cq = cb.createQuery(Pet.class); Root<Pet> pet1 = cq.from(Pet.class); Root<Pet> pet2 = cq.from(Pet.class); Reference: The Java EE 6 Tutorial, Chapter 23 Using the Criteria API to Create Queries