About EntityManager

161-170 of 200Refresh
Forum
1

500Mb ObjectDb database opening issue

.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager ... .createEntityManagerFactory(path); EntityManager em = emf.createEntityManager ... ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); m_EntityManager.close
Forum
1

Can't get arraylist/vector type attributes

get the object. But when I call the close method to close the EntityManager the information from ... the entitymanager I write something like vector.size() or I print it's size or I do anything with the vector ... objects are managed. i.e. when the EntityManager is open. When you close the EntityManager managed
Forum
1

Connection is closed Caused by: java.io.EOFException

an EntityManager.   I have checked throughout my code to ensure that  all instances of EntityManager ... .createEntityManager();         }     } } Notice that the EntityManager instances ... if your application might create EntityManager instances without closing them. By the way, following your report
Forum
1

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
1

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
1

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
1

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
1

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
1

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
1

Left join fetch behaviour doesn't retrieve children?

.CascadeType; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax ... ");         EntityManager em = null ;         // Merge parent1         em = emf.createEntityManager ... the data, if done before closing the EntityManager) but not that the relationship is activated. The unit