Home » Search

About EntityManagerFactory

21-30 of 200Refresh
Tutorial
17

Step 4: Add a Servlet Class

ServletException, IOException { // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory)getServletContext().getAttribute("emf ... ); } } GuestServlet performs the following operations on every http request: The EntityManagerFactory
Tutorial
17

Step 4: Add a Servlet Class

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

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 ... can also be used: EntityManagerFactory emf = Persistence.createEntityManagerFactory( "objectdb
Manual
13

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
13

Locking in JPA

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

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
Result
13

ObjectDB Object Database Features

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

Entity Management Settings

of the shared level 2 cache that is managed by the EntityManagerFactory and shared by
Manual
9

JPA Criteria API Queries

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

JPA Metamodel API

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