Internal Website Search

51-60 of 200 resultsRefresh

How to Use a SF with extended Persistence Context?

to begin a new transaction when a transaction is active. In principal The SF doesn't need to begin any transaction since it only get called by the SL which can control it So I tried ... > Caused by: com.objectdb.o._PersistenceException: Attempt to begin a new transaction

Merge Issue: Attempt to reuse an existing primary key value

.getTransaction().begin();         }        ... ()) {             em.getTransaction().begin ... ();         em.getTransaction().begin();     

Is it possible to remove parent/child entities without refresh?

().begin();   entityManager.persist(parentEntity);   parentEntity.addChild(new ... ; entityManager.getTransaction().begin();   entityManager.remove(parentEntity.getChildren ... ().begin();   ChildEntity childEntity2 = parentEntity.getChildren().get("childEntity2");  

Insertion Speed Rate and Batch Load

.getTransaction().begin();         for (int i = 1; i <= count; i ... ;   em.getTransaction().begin();           ... .getTransaction().begin();   for (int i=0, j=0; i<deviceCount; i++) {    if (i

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin ... , again, are similar to these: 1. trans = em.getTransaction(); trans.begin(); create typeC o ... ++) {             em.getTransaction().begin();  

Unable to execute update query

;  em.getTransaction().begin();         for (int i = 0; i < ... ;              em.getTransaction().begin ... ; System.out.println("Adding objects");         em.getTransaction().begin

Remove an entity which attributes were changed - OptimisticLockException

.getTransaction().begin();         em.persist(new MyEntity());   ... ();         em.getTransaction().begin();      ... ().begin();         MyEntity entity = new MyEntity();   

Update more than 10000 entities by an update query fails

"); EntityManager emOne = emf.createEntityManager(); emOne.getTransaction().begin(); emOne ... .createEntityManager(); emTwo.getTransaction().begin(); emTwo.setFlushMode ... .getTransaction().begin(); emThree.setFlushMode(FlushModeType.AUTO); { assertTrue

Tracking changes to new collections (in enhancement mode) after flush

;           em.getTransaction().begin();      ... .createEntityManager(); em.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin ... .createEntityManager(); em.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin

Unexpected exception (Error 990) com.objectdb.o.InternalException

with an embeddable:         em.getTransaction().begin();    ... ().begin();         embeddable.update();      ... .getTransaction().begin();         em.persist(new MyEntity());