About EntityManager

41-50 of 200Refresh
JPA Doc
44

setFlushMode(flushMode)

Method javax.persistence.EntityManager void setFlushMode(   FlushModeType flushMode ) Set the flush mode that applies to all objects contained in the persistence context. Parameters: flushMode - flush mode Since: JPA 1.0
JPA Doc
44

setProperty(propertyName, value)

Method javax.persistence.EntityManager void setProperty(   String propertyName,   Object value ) Set an entity manager property or hint. If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: propertyName - name of property or hint value - value for property or
Manual
34

Obtaining a JPA Database Connection

In JPA a database connection is represented by the EntityManager interface. Therefore, in order to manipulate an ObjectDB database we need an EntityManager instance. Operations that modify database ... an EntityManager instance consists of two steps. First we need to obtain an instance
Manual
31

Working with JPA Entity Objects [2011-04-18]

this state the object is not yet associated with an EntityManager and has no representation in ... via an EntityManager’s persist method, which must be invoked within an active transaction. On transaction commit, the owning EntityManager stores the new entity object to the database. More details on storing objects
Manual
31

Working with JPA Entity Objects

this state the object is not yet associated with an EntityManager and has no representation in ... via an EntityManager’s persist method, which must be invoked within an active transaction. On transaction commit, the owning EntityManager stores the new entity object to the database. More details on storing objects
Manual
29

Database Connection using JPA

A connection to a database is represented by an EntityManager instance, which also provides ... database connection, using a separate EntityManager instance, for every HTTP request. The main role of an EntityManagerFactory instance is to support instantiation of EntityManager instances
Manual
29

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
Manual
25

Setting and Tuning of JPA Queries

on which they were invoked). Flush Mode (setFlushMode) Changes made to a database using an EntityManager ... of other EntityManager instances). JPA implementations can easily make uncommitted changes visible in ... the application, either at the EntityManager level as a default for all the queries in that EntityManager
Manual
25

Detached Entity Objects

EntityManager but still represent objects in the database. Compared to managed entity objects, detached ... the database unless modified detached objects are merged back into an EntityManager to become managed again. Detached objects are useful in situations in which an EntityManager is not available
Manual
23

Shared (L2) Entity Cache

Every EntityManager owns a persistence context, which is a collection of all the entity objects ... an entity object that is already managed by the EntityManager returns the existing instance from ... is one EntityManager. This section describes a level 2  (L2) cache of entity objects, which is managed