In an
EXTENDED persistence context, all read only operations of the entity manager can be executed outside a transaction (find(),
getReference(), refresh(), detach() and read queries). Some modifications operations can be executed outside a transaction, but they are queued until the persistence context join a
1. transaction: this is the case of
persist(), merge(), remove(). Some operations cannot be called outside a
2. transaction: flush(), lock(), and update/delete queries.
All application managed entity manager and container managed persistence contexts defined as such are EXTENDED. This means that the persistence context type goes beyond the transaction life cycle. We should then understand what happens to operations made outside the scope of a transaction.