About commit

181-190 of 200Refresh
Issue
1

Query in nested transaction returns detached entity if lazy-loaded

= 0), pre persisted (entity version = 0), post persisted (entity version = 1) and committed, during the commit an optimistic lock exception is thrown. The version flag of the entity was unexpectedly ... in our tool. Caused by: com.objectdb.o._RollbackException: Failed to commit transaction: Optimistic
Issue
1

Removed entities can be found by query in the same transaction

was flushed but not committed yet then the database maintains at least two different snapshots of objects ... after that flush were not visible to that transaction (until commit). Build 2.7.4_04 fixed it by creating a new snapshot on query execution if changes have been committed after the last flush by
Issue
1

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

); em.getTransaction().commit(); } catch (Exception ex ... .persist(chart); em.getTransaction().commit(); } catch (Exception ex ... (); chart = em.merge(chart); em.getTransaction().commit(); } catch (Exception ex
Forum
1

alter table

: Exception in thread "main" [ObjectDB 2.2.9_04] javax.persistence.RollbackException Failed to commit ... 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) at test.testString.main(testString.java:55 ... .o.OBM.bE(OBM.java:715) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:274) ... 1 more Caused by
Forum
1

Attempt to remove a detached entity object (error 613)

to merge it ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove a detached entity object (error 613)      at com.objectdb.jpa.EMImpl.commit(EMImpl.java:290) We see in this stack trace that is a commit operation, all right ... So why does it try to remove the object
Forum
1

ClassCastException: cannot be cast to com.objectdb.spi.TrackableUserType

.makePersistent( instance ) transaction.commit() } catch( e ... .OBM.bE(OBM.java:715) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:274) at javax.jdo.Transaction$commit.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
Forum
1

Database Inconsistency or corruption

() + 1);     System.out.println("Trying to commit");     em.flush();         System.out.println ... . It is unclear why your updates are not committed. Here is a list of possible reasons: Changing objects with no active transaction. Updating objects in a transaction but with no commit. Partial
Forum
1

Database(*.odb) file size on disk

);     entityAIds.add(entity.id);     em.getTransaction().commit();    }    System.out.println("references ... .class, entityAIds.get(i));     entity.entityB = entityB;     em.getTransaction().commit ... ));     em.remove(entity);     em.getTransaction().commit();    }   }   em.close();   emf
Forum
1

Empty temporary dat files in the temp folder

, begin a transaction, do some stuff (find, persist, remove …) and then commit or in the case of errors ... ().commit();   em.close();   emf.close(); } public static void acessDB(String db ... ().commit();   em.close();   emf.close(); } @Entity public static class MyEntity {   @Basic
Forum
1

Entity Update - Is the documentation up to date?

transaction.  If I subsequently begin and commit a transaction, all my changes seem to be merged ... from outside an active transaction.  If I subsequently begin and commit a transaction, all my changes ... will also be applied to database on transaction commit. I'd like to understand the "dirtying" of entities