About EntityManager

51-60 of 200Refresh
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
Manual
23

CRUD Database Operations with JPA [2011-02-11]

Given an EntityManager, em, that represents a JPA connection to the object database, we can use ... an ordinary Java object. It then becomes associated with an EntityManager and with its transaction (as ... can become productive very quickly. The EntityManager object serves as the factory for Query instances
Manual
23

CRUD Database Operations with JPA

Given an EntityManager, em, that represents a JPA connection to the object database, we can use ... an ordinary Java object. It then becomes associated with an EntityManager and with its transaction (as ... can become productive very quickly. The EntityManager object serves as the factory for Query instances
Forum
23

EntityManager refresh problem

Hi, in the following code you can see an example with EntityManager.refresh(). The example throws ... -------------------- package example; import java.io.File; import javax.persistence.EntityManager ... void refreshTest() {         EntityManager entityManager = null;         try
Forum
22

UserException - Object User#2 belongs to another EntityManager

EntityManager with the same unitName. TradesC method needs an User, which is taken from UserDataB ... .pingushare.entity.p1.User#2' belongs to another EntityManager at com.objectdb.o.MSG.d(MSG.java:61 ... this should be a problem if, in the same transaction, an entity is passed into more EntityManagers, but here are 2
Manual
22

Retrieving JPA Entity Objects

. Given an EntityManager em, the following code fragment demonstrates retrieval of an Employee object ... if the specified class is not an entity class. If the EntityManager already manages the specified entity ... except that if the entity object is not already managed by the EntityManager a hollow object
Forum
21

Attempt to execute a query using a closed EntityManager

. com.objectdb.o.UserException - Attempt to execute a query using a closed EntityManager at com ... to execute a query using a closed EntityManager at org.apache.myfaces.view.facelets.el ... EntityManager at org.apache.el.parser.AstValue.invoke(AstValue.java:291) at org.apache.el
Forum
21

EntityManager JPA or JDO impl and different behavior

Hi, I have an issue with the EntityManager. My persistance XML looks like: EntityManager Name: " + em.getClass ... .jdo.PMImpl Whats going on here? Is the entityManager not controlled by the persistance.xml or
Forum
21

Object belongs to another EntityManager - ERROR

#8' belongs to another EntityManager (error 613) 10:29:14,887 ERROR [stderr] (http--10.23.3.98-8081 ... .UserException: Object 'pbdmodel.impl.OrgJedinicaImpl#8' belongs to another EntityManager 10:29:15,072 ... #8' belongs to another EntityManager 10:29:15,089 ERROR [stderr] (http--10.23.3.98-8081-5) at com
Forum
21

Accessing objects to make them available after EntityManager close?!

"); EntityManager em = emf.createEntityManager(); TypedQuery query = em.createQuery("SELECT w ... objects? Many thanks Closing the EntityManager changes the state of the managed object to detached, and in detached objects only fields that have already been loaded when the EntityManager