About EntityManagerFactory

21-30 of 200Refresh
Forum
27

Closed EntityManagerFactory after upgrading glassfish 3.1.1 to 3.1.2

from a closed EntityManagerFactory at com.objectdb.o._PersistenceException.b(_PersistenceException ... a connection from a closed EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at com
Manual
19

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
Tutorial
19

Step 4: Add a Servlet Class

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

Step 4: Add a Servlet Class

, IOException { // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory)getServletContext().getAttribute("emf"); EntityManager em ... performs the following operations on every http request: The EntityManagerFactory is retrieved from
Manual
16

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
16

Locking in JPA

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

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
Manual
16

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
11

JPA Criteria API Queries

the EntityManagerFactory's getCriteriaBuilder method or by the EntityManager's getCriteriaBuilder method
Manual
11

JPA Metamodel API

Metamodel API is Metamodel. It can be obtained either by the EntityManagerFactory's getMetamodel method or