About EntityManager

161-170 of 200Refresh
Forum
2

Database is erased after deploying a new web application version

from Tomcat's manager? When should I use the close method of EntityManagerFactory and EntityManager ... of EntityManagerFactory and EntityManager? You can close the EntityManagerFactory when the web application is closed (see this example). Usually EntityManager instances are created and closed
Forum
2

Embedding ObjectDB on server application

: javax.persistence.PersistenceException Message: No Persistence provider for EntityManager named test ... for EntityManager named objectdb:$objectdb/test.odb Description: Error during event handling: javax.persistence.PersistenceException: No Persistence provider for EntityManager named objectdb:$objectdb/test.odb
Forum
2

Entity is not related to ObjectDB, but i get exception from ObjectDB

Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive ... .AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361) [hibernate-entitymanager-4.0.1 ... .java:816) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb
Forum
2

EntityTransaction.commit() does not release a pessimistic lock

.createEntityManagerFactory("accounts.odb"); EntityManager em = emf.createEntityManager(); em ... (); // update EntityManager em1 = emf.createEntityManager(); em1.getTransaction().begin ... // try to retrieve again EntityManager em2 = emf.createEntityManager(); em2
Issue
2

Feature suggestion: auto-detection of entities via persistence.xml extension

I am encountering problems (complexities) with EntityManager registration of entities ... system: hibernate.archive.autodetection https://docs.jboss.org/hibernate/entitymanager/3.6/reference/en ... to the EntityManager whether one performs compile-time enhancement or runtime enhancement ? That is, does
Forum
2

First query takes 4+ minutes to complete

String fromExtension;   Operation We use two EntityManagers in our code, each running in a different thread: 1. The first EntityManager only adds records to the DB at a rate of 5 records per second. Each add is a single new object and is wrapped in a transaction. 2. The 2nd EntityManager runs
Forum
2

Glassfish 4 AbstractMethodError: com.objectdb.jpa.EMF.createEntityManager

/EntityManager; at com.sun.ejb.containers.EJBContainerTransactionManager.checkExceptionClientTx ... ;)Ljavax/persistence/EntityManager; at com.sun.enterprise.container.common.impl.EntityManagerWrapper ... /SynchronizationType;Ljava/util/Map;)Ljavax/persistence/EntityManager; at com.sun.ejb.containers
Forum
2

How to Remove records from many to many relationship tables in JPA

(conclusion.getId()); public void removeConclusions(Long id) { entityManager = dbConn.getConnection(); Conclusion conclusion = entityManager.find(Conclusion.class, id); entityManager.getTransaction().begin(); entityManager.remove(conclusion); entityManager
Issue
2

JQL-Update Queries fails with activated L2-Cache

When using JQL-Update Queries it is basically not working without calling entityManager.clear() after a transaction commit. When the clear() method isn't called the entityManager will never return ... objects and then updating them, but it should be used cautiously because bypassing the EntityManager
Forum
2

Large (and growing) numbers of ODB-StoreHandler Threads

between EntityManagerFactories or EntityManagers in the application? Thanks,  Clinton Moore Store ... . Every client connection (represented by EntityManager) is served by a separate StoreHandler on the server. Please check that every created EntityManager is properly closed when not in use anymore. In