Home » Search

About commit

141-150 of 200Refresh
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

Remove a modified entity cause an optimistic lock exception

FlushModeType.AUTO?) Removing the object. Committing the changes. The console application is the same ... ());         em.getTransaction().commit();         em.close();         em = emf ... );         e.increaseValue();         em.flush();         em.remove(e);         em.getTransaction().commit
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

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

@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
Forum
1

@Unique member combination not working

().commit();         } finally {             if (em.getTransaction().isActive()) {                 em ... .persist(person);                 em.getTransaction().commit();             } finally ... thread "main" [ObjectDB 2.x] javax.persistence.RollbackException Failed to commit transaction
Issue
1

ArrayIndexOutOfBoundsException: -1

.PersistenceException Attempt to commit a transaction after failure in writing to database file 'C:\Users\Home ... (PersistTest.java:97) Caused by: com.objectdb.o.UserException: Attempt to commit a transaction ... and then commit) - the page cache could purge newer version of a page leaving older versions for use
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