Home » Search

About commit

151-160 of 200Refresh
Forum
1

failure to enforce NOT NULL for java.lang.String

); //try { tr.begin(); em.persist(r); tr.commit(); //} //catch ... 2.3.7] javax.persistence.RollbackException Failed to commit transaction: Unique constraint (org ... ) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:279) Thank you for this report and for the test
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
Issue
1

NoResultException: No matching results for a unique query

to the query until commit. This behavior can be changed by modifying the flush mode. Which flush mode are using? Hi, I didn't change it so I am using the default Flush Mode (COMMIT). I don't ... within a transaction commit that I've been using to modify something only? I've thought the NoResult* exception
Issue
1

NullPointer running multiple client against server

{ em.persist(obj); em.getTransaction().commit(); } catch(Exception e) { if(em ... .java:595) Caused by: com.objectdb.o._RollbackException: Failed to commit transaction: $1 at com ... .onObjectDBError(OBC.java:1443) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) ... 11 more Caused by: java
Forum
1

Object belongs to another EntityManager - ERROR

[stderr] (http--10.23.3.98-8081-5) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl ... -5) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:290) 10:29:14,895 ERROR [stderr] (http--10.23.3 ... [stderr] (http--10.23.3.98-8081-5) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:287) 10:29
Forum
1

problem with lazy loading - unittest project attached

guess after the commit the id is assigned?! like i said, this is properbly not the best way to test ... should have his own transaction. spring does not allow me to call entityManager.getTransaction().begin()/commit ... . To get an object ID before commit - please consider: a different GeneratedValue's strategy (in ObjectDB
Issue
1

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

(parentEntity);   entityManager.getTransaction().commit();   entityManager.getTransaction().begin ... .getChildEntityContainer().remove("01");   entityManager.flush();   entityManager.getTransaction().commit ... e = new MyEntity();         em.persist(e);         em.getTransaction().commit();         em
Forum
1

Run out of memory

("Flushing"); } } protected void onCommit() {     this.em.getTransaction().commit(); this.em.clear(); this.em.close();     System.err.println("Commit Done"); } protected void ... (); for (DatabaseData d : lotsOfData) insertDatabaseData(d); if (commit) onCommit
Forum
1

Schema Update: class hierarchy change

.persist(entity);   em.getTransaction().commit();     em.getTransaction().begin();   MyEntity ... (entityWithID1.name);   System.out.println(entityWithID1.value);   em.getTransaction().commit ... "; //  entity.value = "value123"; //  em.persist(entity); //  em.getTransaction().commit();     em