Home » Search

About commit

131-140 of 200Refresh
Forum
2

Error using query with MAX() function

.setChangeDate(new Date(System.currentTimeMillis())); em.getTransaction().commit(); em ... = (Date)tq.getSingleResult(); em.getTransaction().commit(); System.out.println("MaxDate ... )   There seems to be a link between how often I commit and the results of success or failure. If I commit after every update
Forum
2

Fantom

() .with { transaction.begin() persist(new Address(street:"Groovy")) transaction.commit() } @Entity class ... "}) getTransaction.commit } } } @Entity class Address{ Str? street } Result Groovy version works ... to commit transaction: Failed to get reference value of field field fan.FodbTest.Address.street using
Issue
2

InternalException during producer/consumer scenario

) Caused by: com.objectdb.o._RollbackException: Failed to commit transaction: Unexpected internal ... .onObjectDBError(OBC.java:1386) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:259) at rbccm.felix ... (OBM.java:711) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:256) ... 4 more Caused by: java.lang
Forum
2

Items in list are doubled, when the entity class is not enhanced

(); for(Object o : l){ em.remove(o); } em.getTransaction().commit(); l ... (); for(Object o : l){ em.remove(o); } em.getTransaction().commit ... .persist(c); em.getTransaction().commit(); em.refresh(c); em
Forum
2

Mysterious "Attempt to persist a reference to a non managed instance" error

exceptions at commit time. I've stripped it down to a  set of files that seem to be of trivial complexity ... );       em.persist(oo);         tx.commit();     } } I had started with the expectation ... .RollbackException Failed to commit transaction: Attempt to persist a reference to a non managed failing
Forum
2

Optimistic locking: prevent version increment on entity collection attribute

);     em.persist(doc);        em.getTransaction().commit();        Document tmpDoc = em.find ... and we are still in the same transaction (before any commit or rollback). In the debugger, when I check ... - The Test class with a test method that creates a document, adds 2 Readings to it and commits
Issue
2

Server out of memory exceptions

an embedded database: [ObjectDB 2.2.8] javax.persistence.RollbackException Failed to commit transaction: Attempt to commit a transaction after failure in writing to database file 'F:\calculationservice\objectdb\dbs\admin\WorkflowHistory.odb' (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277
Forum
2

Eclipse plugin problem (using ObjectDB as a separate bundle)

.EMImpl.commit(EMImpl.java:277) at javax.jdo.Transaction$commit.call(Unknown Source) at org.codehaus ... in the stack trace at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277)  refers to JPA ... " on-persist="false" on-commit="true" /> If this doesn't help - please submit a test case that reproduces
Forum
1

find() delay

(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test ... . trans = em.getTransaction(); trans.begin(); create typeC o; em.persist(o); trans.commit(); 2 ... ();             em.persist(new MyEntity());             em.getTransaction().commit
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