Since 8 no more containers
Note: this is with 3.1.1
JPAContainerFactory.make(V7TestEntity.class, "V7Test");
The factory make methods creates frequently used container types.
For MutableLocalEntityProvider, which is used in above"make" + persistence unit name method created container,
transaction is either:
- handled by provider (default)
- in this case, the data source should be a non-JPA one, cause the provider calls EntityManager.getTransaction()
- handled by external container (setTransactionsHandledByProvider(false);)
- uses UserTransaction to manage transactions
- call Container.getEntityProvider().getEntityManager().joinTransaction(); when needed