ObjectDB ObjectDB

Internal Website Search

151-160 of 200 resultsRefresh

Multi-thread access to single EM's entities

.getTransaction().begin();         em.persist(pointless);         em.getTransaction().commit();         em.getTransaction().begin();           Thread t = new Thread(new Runnable

remove & persist in same transaction => Attempt to reuse an existing primary key value

.getTransaction().begin(); EntityA entity = new EntityA(1); em.persist(entity); em.getTransaction().commit(); System.out.println("load and remove"); em.getTransaction().begin

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

= now(); em.getTransaction().begin(); int i; for (i = 1; i < EVALUATION ... (); em.getTransaction().begin(); } } em.getTransaction().commit

"where in" query

");         EntityManager em = emf.createEntityManager();                 em.getTransaction().begin ... .getTransaction().begin();         for (int i = 0; i < 5; i++) {             em.persist(new Prez

client server mod of communication

.createEntityManager(); em.getTransaction().begin(); gtr = new Getter(1, "john"); em.persist(gtr); em.getTransaction ... (); em.getTransaction().begin(); strc = new SetterClass(1, "john"); em.persist(strc); em

Cannot sort descending, when ordering by caluculated float in a method

();                 em.getTransaction().begin();                 Invoice i1 = new Invoice();         i1 ... (); em.getTransaction().begin(); Invoice i1 = new Invoice(); i1.getItemList().add


class: public Agency saveAgency(Agency agency) {     odb.getTransaction().begin();     odb

problem when primary key value is zero

();                 em.getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction

Merge throw exception "Attempt to reuse an existing primary key value"

.createEntityManager();         final int Id = 0;         em.getTransaction().begin();         em.persist(new MyEntity(Id));         em.getTransaction().commit();         em.getTransaction().begin();         em

[ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

{             Object oid = null;             pm.currentTransaction().begin();             for (int i = 0; i ... ();                 pm.currentTransaction().begin();             pm.newQuery("SELECT a FROM

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