2.7.2. Obtaining EntityManagers
public EntityManager createEntityManager();
public EntityManager createEntityManager(Map map);
The two createEntityManager methods above create a new EntityManager each time they are invoked.
The optional Map is used to supply vendor-specific settings.
If you have configured your implementation for JTA transactions and a JTA transaction is active, the returned EntityManager will be synchronized with that transaction.
|
|
OpenJPA recognizes the following string keys in the map supplied to
The last option uses reflection to configure any property of OpenJPA’s |