Open scottmarlow opened 4 months ago
Notes from Platform call
EntityManager
outside of a transaction, after each entity call, the PersistenceContext
state is not preserved. Notes from Platform call
* Stateless session beans have always been challenging to test robustly. * JPA 2.1 clarification: when you use `EntityManager` outside of a transaction, after each entity call, the `PersistenceContext` state is not preserved.
Unless a persistence unit hint (e.g. extension) like jboss.as.jpa.deferdetach is used to defer the clearing/close of the persistence context until the session bean call completes.
Depends on #1624 .
Add tests for https://github.com/jakartaee/platform/pull/746