Home » Search

About EntityManager

151-160 of 200Refresh
Forum
2

Null enums and IS (NOT) NULL: NullPointerException

") private EntityManager entityManager; public void persist(Object o) { try { transaction.begin(); entityManager.persist(o); transaction.commit ... { @PersistenceContext(unitName = "my-pu") private EntityManager entityManager; @EJB private TestManager
Forum
2

system exception occurred during an invocation on EJB GuestDao

: same problem (see below). How can I verify if the EntityManager has been successfully injected ? (statement : @PersistenceContext private EntityManager em) 2014-09-02T10:50:04.779+0200|Avertissement ... /EntityManager; at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate
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