About EntityManagerFactory

31-40 of 200Refresh
Tutorial
14

Step 4: Add a Servlet Class [2011-05-02]

{ // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory ... operations on every http request: The EntityManagerFactory is retrieved from the application scope attribute
Tutorial
14

Step 4: Add a Servlet Class

: EntityManagerFactory emf = (EntityManagerFactory)getServletContext ... : The EntityManagerFactory is retrieved from the application scope attribute, and then an EntityManager
Manual
14

Database Replication and Clustering

, the master database can be accessed ordinarily as follows: EntityManagerFactory emf = Persistence ... different url is required in order to access the slave database: EntityManagerFactory emf = Persistence ... can also be used: EntityManagerFactory emf = Persistence.createEntityManagerFactory( "objectdb
Manual
14

Database Replication and Clustering [2019-08-09]

, the master database can be accessed ordinarily as follows: EntityManagerFactory emf = Persistence ... different url is required in order to access the slave database: EntityManagerFactory emf ... can also be used: EntityManagerFactory emf = Persistence.createEntityManagerFactory( "objectdb
Manual
12

JPA Persistence Unit

to instantiate an EntityManagerFactory in JPA (as explained in the JPA Overview section) requires ... an EntityManagerFactory. It may also have optional sub elements: The provider element indicates which JPA
Manual
12

Setting and Tuning of JPA Queries

> For an EntityManagerFactory - using the createEntityManagerFacotory method:   Map properties = new HashMap();   properties.put("javax.persistence.query.timeout", 4000);   EntityManagerFactory emf
Manual
12

Locking in JPA [2011-04-30]

> For an EntityManagerFactory - using the createEntityManagerFacotory method:   MapEntityManagerFactory emf =       Persistence.createEntityManagerFactory("pu", properties); For an EntityManager
Manual
12

Locking in JPA

> For an EntityManagerFactory - using the createEntityManagerFacotory method:   MapEntityManagerFactory emf =       Persistence.createEntityManagerFactory("pu", properties); For an EntityManager
Result
12

ObjectDB Object Database Features

managed by EntityManagerFactory. Configurable - minimum/maximum connections and timeout. Caching L1 entity object cache (per EntityManager). L2 shared entity data cache (per EntityManagerFactory
Result
12

ObjectDB Object Database Features [2018-10-27]

Automatic connection pool managed by EntityManagerFactory. Configurable - minimum/maximum connections ...  (per EntityManagerFactory). Database file page cache. Query program cache (for repeating queries