 18 | from Metamodel of a differente EntityManager initialized on a @Controller @RequestMapping event. I ... is it: If I have two moments of initialization of "javax.persistence.metamodel" from EntityManager and these two metamodels come from different EntityManagers. One of these is on a @PostConstruct event |
 18 | The following exception occures if we call entityManager.flush() where the corresponding JPA PersistenceContext has many entities and relations. What is the reason for the exception? entityManager.getTransaction().commit() instead of a entityManager.flush() works correctly. Unfortunately I |
 18 | Our application manages the Entities itself, so we close the EntityManager after every creating ... and finalize, we found the problem is caused by bad state of EntityManager. After first throwing the InternalException, the EntityManager throws every time when doing merge operation, but it can be closed |
 18 | Hi I understand we should close the entitymanager after each use, and close the factory ... mode. I am just running some test cases and opened up 100 entitymanager via factory ... EntityManager and EntityManagerFactory instances is mainly wasted resources on the client side. Trianglehead |
 18 | Hello, we have following situation: The EntityManagerFactory is always opened and won't be closed. Thread A with its own EntityManager persists entities and commits the entities successfully. Thread B runs afterwards also with its own EntityManager and tries to load the persisted entities by |
 18 | .PersistenceException: No Persistence provider for EntityManager I'm using the latest ObjectDB 2.6.2.b03 ... an EntityManager) it may be because resources that are needed by createEntityManagerFactory (e.g. persistence.xml |
 18 | I am trying to track down some obscure errors with multi-threading. This involved looking at the EntityManager Metamodel but this caused an ObjectDB exception. So I reverted to your example code in ... ;drop" EntityManager em = emf.createEntityManager();
em.getTransaction().begin(); MyEntity e1 |
 18 | EntityManager.refresh takes a long time for entity object Person in this code:
logger.log(Level.INFO, "begin select for person " + new Date().toString());
TypedQuery Entitymanager updates only objects in his context |
 18 | .EntityManagerFactoryImpl@ffa7e1
EntityManager emTemp = emf.createEntityManager();
TypedQueryEntityManager em = emf.createEntityManager(); try |
 18 | Just started using objectdb (2.3.4). Calling EntityManager.merge for a new (non-managed) object gives EntityNotFoundException. I am perplexed by this. See attached test case. Thanks for your assistance. Full error output is: Exception in thread "main" [ObjectDB 2.3.4] javax.persistence |