About EntityManagerFactory

21-30 of 200Refresh
Tutorial
28

Step 3: Add a Context Listener Class [2011-02-11]

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

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
24

Obtaining a JPA Database Connection [2011-02-11]

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

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

Shared (L2) Entity Cache [2011-09-20]

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

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

Shared (L2) Entity Cache [2019-08-09]

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

Database Replication and Clustering [2014-01-11]

, 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
Tutorial
14

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

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

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