ObjectDB ObjectDB

Internal Website Search

171-180 of 200 resultsRefresh
7

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
7

@Unique member combination not working

().commit();         } finally {             if (em.getTransaction().isActive()) {                 em ... ();                 em.persist(person);                 em.getTransaction().commit();             } finally ... to commit transaction: Unique constraint (com.objectdb.test.bug.forum.T1522$Person[name,surname]) failed
7

Visibility of changes in Transaction is not visible to a JPA QL Query

.println("Only found " + newTotal + " items expected " + (howMany + oldAmount));    }    tx.commit ... the default is AUTO. In ObjectDB the default is COMMIT (which is more efficient). support Support ... commit in a Query... For example if I implement the following in Singleton; public Item findItem
7

Updating existing persistence entries

get it to work. The transparent update needs a transaction to be started and then committed ... can commit the session afterwards and that's it. I mean I don't need to modify the object ... are identified automatically. Of course, you have to begin and commit a transaction (when SAVE is selected
7

how to persist an object twice into two diff. collections of two diff. classes

); db.persist(tmpComp); } db.commit(); db ... .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.java:259
7

Memory Leak in EntityManagerFactory ?

with no commit or rollback). Possibly, this behaviour is to avoid cleaning objects that are still in ... it. Anyway, if this diagnosis is correct then a possible solution on your side may be to check and commit ... , anyway: if (em.getTransaction().isActive()) em.getTransaction().commit(); em.close
1

NoResultException: No matching results for a unique query

are usually (but not always) invisible to the query until commit. This behavior can be changed by ... am using the default Flush Mode (COMMIT). I don't get why this is happening, it just has happened ... . Could you please tell me why I do even get a NoResult* exception within a transaction commit that I've been using
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
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 ... ();         MyEntity e = new MyEntity();         em.persist(e);         em.getTransaction().commit
1

Unexpected exception (Error 990) com.objectdb.o.InternalException

.getTransaction().commit();         // Keep a strong reference to the embeddable but free the entity ... ();         embeddable.update();         em.getTransaction().commit(); // unexpected state         em.close ... .getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction().commit

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