About EntityManagerFactory

11-20 of 200Refresh
Manual
39

Database Connection using JPA

of an EntityManagerFactory instance is to support instantiation of EntityManager instances. An EntityManagerFactory is constructed for a specific database, and by managing resources efficiently (e.g ... for that database. The instantiation of the EntityManagerFactory itself might be less efficient
Manual
39

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
Tutorial
31

Step 3: Add a Context Listener Class

a JPA's EntityManagerFactory instance with a global application scope. We have to register ... if not exists yet) when the web application starts, by instantiating an EntityManagerFactory ... closing that EntityManagerFactory. To register a ServletContextListener: Open the [New File] dialog box by
Tutorial
31

Step 3: Add a Context Listener Class

a JPA's EntityManagerFactory instance with a global application scope. We have to register ... if not exists yet) when the web application starts, by instantiating an EntityManagerFactory ... closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog
Manual
26

Obtaining a JPA Database Connection

content also require an EntityTransaction instance. Obtaining an EntityManagerFactory Obtaining ... of EntityManagerFactory that represents the relevant database and then we can use that factory instance ... to be able to generate an EntityManagerFactory. But when using ObjectDB you can either define a standard
Forum
23

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

; public static void main(String[] args) {   EntityManagerFactory emf = null;   EntityManager em = null ... ) {   EntityManagerFactory emf = null;   EntityManager em = null;   try {    emf = Persistence ... . I see the following stack trace. Notice EntityManagerFactory switched over to the slave
Manual
23

Shared (L2) Entity Cache

by the EntityManagerFactory and shared by all its EntityManager objects. the broader scope ... to the EntityManager's L1 cache and the EntityManagerFactory's L2 cache, which are managed ... is wider, since they exist per database and are shared by all the EntityManagerFactory and EntityManager
Forum
23

High memory consumption even after close() of EntityManagerFactory

could not be released. Not even after the EntityManagerFactory closed. We created a small test ... ) on EntityManagerFactory close.   The optimization of memory usage was very effective. The test ... released (if active) on EntityManagerFactory close. However, there are other structures
Forum
23

Objectdb EntityManagerFactory problem

. You can close each EntityManagerFactory by using the close method. By the way, creating an EntityManagerFactory is relatively slow. It is usually better to use one EntityManagerFactory
Forum
22

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