|
|
When persist() is invoked outside of a transaction, the behavior depends on the type of entity
manager. A transaction-scoped entity manager will throw a TransactionRequiredException as
there is no persistence context available in which to make the entity managed. Applicationmanaged
and extended entity managers will accept the persist request, causing the entity to
become managed, but no immediate action will be taken until a new transaction begins and
the persistence context becomes synchronized with the transaction. |
|