About EntityManager

141-150 of 200Refresh
Forum
2

ODB IndexActivation NullPointerException

an EntityManager. 1) sometimes the following System out: * Batch ended at '2LG' * Batch ended at '2LG ... periods Do you mean with opening and closing the creation of EntityManagerFactory or of EntityManager ... a entityManager - close it - and wait a few seconds, that the IndexActiovation thread can finish
Forum
2

Remove an entity which attributes were changed - OptimisticLockException

seems to be using one or more EntityManagerFactory / EntityManager instances, i.e ... "? Are you sure that the same EntityManager (not just the same EntityManagerFactory) is used by ... should be when only one EntityManager is used) or different Java instances? I meant the ObjectDB
Issue
2

Best practise loading big data

this MyStepBlockCollection sbc = entityManager.find(id); for (MyStepBlock sb : sbc.stepBlocks) { for (MyStep s : sb ... after looking at the heap dump to your code in #6 above: MyStepBlockCollection sbc = entityManager ... .persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence
Forum
2

Persist error @ManyToMany how to define correct entities relationships

.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import ... ; EntityManager em; void test(){ Category cat1 = new ... .persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence
Issue
2

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

.EntityExistsException; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory ... .createEntityManagerFactory("ReproducePU"); }   public EntityManager getEntityManager ... ) { EntityManager em = getEntityManager(); try { return em.find(MomentEntity.class, id
Forum
2

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

?   import javax.persistence.Basic; import javax.persistence.Entity; import javax.persistence.EntityManager ... ") }) public class Container { public static Container getInstance(EntityManager em) { Container c ... , EntityManager em) throws TestException { if (lastInstanceInMap == null
Forum
2

Entity listener - event instead of object

database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't ... regarding the technical question. Do you need to obtain an EntityManager from a listener class? You may use the JDO getPersistenceManager method and cast the result to an EntityManager. I know
Forum
2

Filename.odb$ Persisting Issue

- Copy0.odb"); public  static EntityManager departmentDB = emf.createEntityManager(); public  static EntityManager employeeDB = emf.createEntityManager(); public  static EntityManager paygradeDB = emf.createEntityManager(); public  static EntityManager programDB = emf.createEntityManager
Issue
2

InternalException

around the problem. In the error version I'm keeping the entityManager at the thread level. It is created the first ... entityManager is opened & closed for each action (load, remove, etc). When an update has occurred the actions are now: Open a new EntityManager Open a new transaction Merge the updated object (entityManager
Forum
2

Mismatch client-server protocol prefix

EntityManager) by two concurrent threads. ObjectDB synchronizes use of EntityManager by different ... in the new implementation. Maybe a socket from a closed EntityManager is still used after the EntityManager is closed after its resources are allocated and used by a new EntityManager. You may try