which two conditions can the developer expect the persistence provider to ensure that all changes made to the persistence context…?

A business method of a stateless session bean with a transaction attribute REQUIRED executes a
Java Persistence query on a container-managed persistence context.
Under which two conditions can the developer expect the persistence provider to ensure that all
changes made to the persistence context in the transaction are visible to the processing of the
query? (Choose two.

A business method of a stateless session bean with a transaction attribute REQUIRED executes a
Java Persistence query on a container-managed persistence context.
Under which two conditions can the developer expect the persistence provider to ensure that all
changes made to the persistence context in the transaction are visible to the processing of the
query? (Choose two.

A.
Theflushmode is NOT explicitly set.

B.
Theflushmodeon the Query object is set toCOMMIT.

C.
The refresh method on the EntityManager is called.

D.
The flush mode on the persistence context issetto AUTO but is NOT specified for the Query
object.



Leave a Reply 0

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