Home » Search

About commit

141-150 of 200Refresh
Forum
1

Unable to execute update query

++)             em.persist(new MyEntity(i));         em.getTransaction().commit();                 em ... ");         query.executeUpdate();         em.getTransaction().commit();         em.close();         emf ... ) {                 System.out.println(i);                 em.getTransaction().commit
Forum
1

What algorithm in find()

", i);    o.setParent( p );    em.persist(o);    trans.commit();    if ((i & 0xFF)==0){     end ... );    }   } The time cost of each 256 commits changed from 0.343 to 59.344 seconds, the graph attached shows ... ? Slow commit might be the result of not using enhancement and not calling clear. Please check
Forum
1

Where Does ObjectDB Block/Lock?

()? 3) Does it lock at transaction.begin() if optimistic=false?  4) Does it lock at transaction.commit ... locking, the call to transaction.commit() is where entity object locking actually happens.  Does this mean ... concurrently up to the point where transaction.commit() is called? > Does this mean that all other activity
Forum
1

Optimistic Locking

()); pm.currentTransaction().commit(); pm.close(); // First user retrieves ... .currentTransaction().begin(); c2.increase(); // First user commits - succeeds:   pm1.currentTransaction().commit(); pm1.close(); // Second user commits - fails
Forum
1

Removing an entity throws exception

: Failed to commit transaction: 51 ... Caused by: com.objectdb.o._RollbackException: Failed to commit ... .objectdb.o.OBC.onObjectDBError(OBC.java:1451) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277 ... .OBM.bE(OBM.java:715) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:274) ... 40
Forum
1

@OneToMany(fetch = FetchType.LAZY) list is always null

); transaction.commit(); } catch (NotSupportedException e) { e ... ); entityManager.merge(child.getParent()); transaction.commit(); } catch ... .begin(); entityManager.persist(o); transaction.commit(); } catch
Issue
1

Blocked by find

(OBM.java:813) com.objectdb.o.OBM.bG(OBM.java:719) com.objectdb.jpa.EMImpl.commit(EMImpl.java:276 ... this but it looks like objectdb is blocked in the commit? Could you give me some information ... .ObjectManager.bG(ObjectManager.java:719) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:276) at rbccm.felix
Forum
1

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

" on-commit="true" />                                         commit="true" />                 commit
Forum
1

how to persist an object twice into two diff. collections of two diff. classes

(tmpSquad); db.persist(tmpComp); } db.commit ... .persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (ch.hsr.gymtastic.domain.Squad:1) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl
Issue
1

New entity objects are duplicated on merge cascading

();         em.getTransaction().begin();         em.persist(new Book());         em.getTransaction().commit ... (book);         em.getTransaction().commit();         em.close();                 em = emf ... A());         em.getTransaction().commit();                 em.close();         em = emf