Online Access Free 1Z0-898 Exam Questions
Exam Code: | 1Z0-898 |
Exam Name: | Java EE 6 Java Persistence API Developer Certified Expert Exam |
Certification Provider: | Oracle |
Free Question Number: | 63 |
Posted: | Aug 29, 2025 |
Consider the following web application:
Here MyEntity1.class and MyEntity2.class are annotated with @Entity and MyEmbeddable1-class and MyEmbeddable2-class are annotated with @Embeddable. MyPU is container managed. Which of the following represents set of classes considered managed by MyPU?
An application creates a TypedQuery object to perform a query, and sets the query object's flush mode by calling setFlushMode (FlushModeType.commit). The query is executed within a transaction.
Which of the following is true?
A developer wants to create a Java Persistence query that will include a subquery.
Which three are true? (Choose three.)
An application has two entities, Department and Employee, and there is a one-to-many relationship between them. The application has the following query:
SELECT d
FROM Department d LEFT JOIN FETCH d. employees
WHERE d.name = : name
After receiving the results of the query, the application accesses the returned department's Employee entities stored in the Department.employees collection-valued attribute.
All caching has been turned off in the application.
Which statement is true?