jakartaee / platform-tck

Jakartaee-tck
Other
130 stars 109 forks source link

Add tests for Jakarta EE integration of Jakarta Persistence with the CDI bean manager #1405

Open scottmarlow opened 4 months ago

scottmarlow commented 4 months ago

Add tests for https://github.com/jakartaee/platform/pull/746

edburns commented 4 months ago

Notes from Platform call

scottmarlow commented 4 months ago

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.

edburns commented 1 month ago

Depends on #1624 .