Home » Search

About EntityManager

161-170 of 200Refresh
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
Forum
1

Memory Leak?

EntityManager instances (PMImpl). The other instances are probably hold by the EntityManager instances, so the question is why the EntityManager instances are not released. The code that you posted ... I created an EntityManager (line 115). My bad. After I fixed it, no more memory explosion. I
Issue
1

new objects not available in mappedBy associations

after the transaction is committed (or after the update and before commit, if your EntityManager is set to use ... EntityManager? ps: setting FlushModeType.AUTO in the EntityManager resulted in a huge exception ... EntityManager? The argument to refresh is the object that contains the inverse field. This way
Forum
1

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

); entityManager.persist(city); entityManager.persist(person); The exception: java.lang ... Person(); person.setName(name); entityManager.persist(person ... .setCity(city); entityManager.persist(city); entityManager.persist
Forum
1

NullPointerException while setting a new property value

(Collection entityCollection) { final EntityManager em ... should have its own EntityManager and entities. According to the JPA specification: "An entity manager ... manner." Actually there is an attempt to provide thread safe EntityManager and persistence context
Issue
1

spuriously objectdb objects have null references

entityManager per thread and have a central point where we encapsulated all the needed entitymanager ... Object(); public static void begin(EntityManager threadEntityManager){ synchronized(lockBegin ... >(); ...       When an entity object is detached (e.g. when the EntityManager is closed), ObjectDB
Issue
1

stress test -> com.objectdb.o.InternalException: null

that closed the EntityManager and moved its connection to the pool. Then to ObjectDB (on the just closed EntityManager) that had to commit changes using the connection (which has already been moved ... ");                 EntityManager em1 = emf.createEntityManager();         em1.getTransaction().begin();         em1.persist