Which two statements are correct?

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.)

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.)

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.

C.
The flush method should be used to synchronize the current persistence context with
modifications made in other transactions.

D.
The flush method should be used to publish changes done in the current persistence context to
other transactions before actual transaction commit.



Leave a Reply 0

Your email address will not be published. Required fields are marked *