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 user entity is in a one-to-many relationship with a Book entity. In other words, a developer reach the collection of books that a user instance myUser has by using the path expression-"myuser -books". A developer wants to write a Java Persistence query that returns all users that have only two books. Which two are valid queries that return this information? (Choose two.)
Correct Answer: A,C
Explanation/Reference: A (not D): The SIZE(collection) function returns the number of elements in a specified collection. For example : SIZE(c.languages) is evaluated to the number of languages in that collection. C: Example(the aggregate query returns a Long): Query q2 = em.createQuery( "SELECT COUNT(e) FROM Employee e WHERE e.salary > :limit"); Reference: Collections in JPQL and Criteria Queries; Java Persistence Query Return Types