ObjectDB ObjectDB

Internal Website Search

151-160 of 200 resultsRefresh

Optimistic locking: prevent version increment on entity collection attribute

);        em.getTransaction().commit();        Document tmpDoc = em.find(Document.class, doc.getId ... constructor and we are still in the same transaction (before any commit or rollback). In the debugger ... a document, adds 2 Readings to it and commits the transaction. - I then clear the EntityManager so I

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

find() delay

(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test ... .persist(o); trans.commit(); 2. Query q = em.createQuery("select e from typeC e"); List l = q ... .getTransaction().commit();         }         for (int i = 0; i < 30; i

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

Update more than 10000 entities by an update query fails

); } emOne.getTransaction().commit(); emOne.close(); EntityManager ... (query); q.executeUpdate(); } emTwo.getTransaction().commit ... .find(MyModelElement.class, 10001).isVisible()); } emTwo.getTransaction().commit

Unable to execute update query

));         em.getTransaction().commit();                 em.getTransaction().begin();         Query query ... .getTransaction().commit();         em.close();         emf.close();     }     @Entity     public ... ) {                 System.out.println(i);                 em.getTransaction().commit();                 em.flush

Optimistic Locking

.makePersistent(new Counter()); pm.currentTransaction().commit(); pm.close(); // First user ... ().next(); pm2.currentTransaction().begin(); c2.increase(); // First user commits - succeeds:   pm1.currentTransaction().commit(); pm1.close(); // Second user commits - fails

unable to update table in slave server database

to commit transaction: Attempt to commit a transaction in read only mode[ObjectDB 2.8.2] javax.persistence.RollbackException Failed to commit transaction: Attempt to commit a transaction in read only mode (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:180) at code.db.jpa.oodb.ObjDBem

ArrayIndexOutOfBoundsException on flush

().commit(); } catch(Exception e) { if(em.getTransaction().isActive()) em.getTransaction ... into a commit retry loop which blew out the logs: Attempt to commit a transaction after failure in ... .PersistenceException Attempt to commit a transaction after failure in writing to database file 'F

[ObjectDB 2.8.3_01] Unexpected exception (Error 990)

.persistence.RollbackException Failed to commit transaction: Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:289) at common.app.Database ... .persistence.PersistenceException: com.objectdb.o.UserException: Attempt to commit a rollback

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support