READ Free Dumps For Oracle- 1z0-898
Question ID 4594 | A developer wants to ensure that an entity's data is up-to-date with regard to the database. Which of the following statements is guaranteed to accomplish this? |
Option A | A. Call EntityManager.refresh on the entity. |
Option B | B. Add a cacheable (false) annotation on the entity class. |
Option C | C. Call EntityManager.find on the entity. |
Option D | D. Use a named query to retrieve the entity. |
Correct Answer | A |
Question ID 4595 | An application has two entities, Department and Employee, and there is a one-to-many relationship between them. The application has the following query: |
Option A | A. The database will be accessed once during the query execution phase, and once for each Employee entity in Department - employees. |
Option B | B. The database will be accessed once during the query execution phase ONLY. |
Option C | C. The database will be accessed once during the query execution phase, and once when the department.employees collection-valued attribute is used. |
Option D | D. The database will be accessed once during the query execution phase, once when the Department. Employees collection-valued attribute is used, and once for each employee entity in the Department.employees. |
Correct Answer | B |