Oracle
1Z0-860 · Question #74
A Java Persistence application uses the EntityManager.flush method to synchronize the current persistence context with the database. Which two statements are correct? (Choose two.)
The correct answer is A. The flush method might cause the persist operation to be cascaded to related entities. B. Extensive use of the flush method decreases the performance of a Java Persistence application. See the full explanation below for the reasoning.
Question
A Java Persistence application uses the EntityManager.flush method to synchronize the current persistence context with the database. Which two statements are correct? (Choose two.)
Options
- AThe flush method might cause the persist operation to be cascaded to related entities.
- BExtensive use of the flush method decreases the performance of a Java Persistence application.
- CThe flush method should be used to synchronize the current persistence context with modifications
- DThe flush method should be used to publish changes done in the current persistence context to other
How the community answered
(43 responses)- A81% (35)
- C12% (5)
- D7% (3)
Community Discussion
No community discussion yet for this question.