About EntityManager

91-100 of 200Refresh
Manual
12

Storing JPA Entity Objects [2019-08-09]

state is New. An explicit call to persist associates the object with an owner EntityManager em ... managed by the EntityManager) or by commit. Referenced Embedded Objects The following code stores ... to the database using flush are considered temporary and are only visible to the owner EntityManager
Manual
12

Query Parameters in JPA

getCountryByName(EntityManager em, String name) { TypedQuery query = em.createQuery ... parameter: public Country getCountryByName(EntityManager em, String name) { TypedQuery ... method. This time without parameters: public Country getCountryByName(EntityManager em, String name
Manual
10

Entity Management Settings

the persistence context of the EntityManager (which serves as a first level cache). The valid values are "weak ... all its EntityManager instances. The level 2 cache is disabled by specifying 0 or 0mb. The element
Tutorial
10

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

"); EntityManager em = emf.createEntityManager(); try { // Handle a new guest (if any ... is retrieved from the application scope attribute, and then an EntityManager (representing a database
Tutorial
10

Step 4: Add a Servlet Class

= (EntityManagerFactory)getServletContext().getAttribute("emf"); EntityManager em ... the application scope attribute, and then an EntityManager (representing a database connection
Manual
10

SELECT clause (JPQL / Criteria API) [2013-03-11]

The ability to retrieve managed entity objects is a major advantage of JPQL. For example, the following query returns Country objects that become managed by the EntityManager em: TypedQuery ... are not associated with an EntityManager and changes to them when a transaction is active are not
Tutorial
10

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

)getServletContext().getAttribute("emf"); EntityManager em = emf.createEntityManager ... , and then an EntityManager (representing a database connection) is constructed. If a new guest
Manual
10

JPA Metamodel API [2011-10-09]

by the EntityManager's getMetamodel method (both methods are equivalent). For example, given an EntityManager, em, a Metamodel instance can be obtained by: Metamodel metamodel = em.getMetamodel
Tutorial
10

Step 4: Add a Servlet Class

().getAttribute("emf"); EntityManager em = emf.createEntityManager(); try ... : The EntityManagerFactory is retrieved from the application scope attribute, and then an EntityManager
Result
10

ObjectDB Object Database Features

entity object cache (per EntityManager). L2 shared entity data cache (per EntityManagerFactory ... availability and fault tolerance. Online Backup Online backup by a simple query on an EntityManager