ObjectDB ObjectDB

Internal Website Search

91-100 of 200 resultsRefresh
7

Extra uninitialised entities spawned on merge()

.createEntityManager();         em.getTransaction().begin();         Element root = new Element(null ... );                 if (DO_PERSIST_BEFORE_MERGE) {             em.getTransaction().begin();             em.persist(e);             em.getTransaction().commit();         }         em.getTransaction().begin
7

Should derived fields of an EmbeddedId be manually maintained by app code?

(); em.getTransaction().begin(); EContainer container = EContainer.getInstance(em); long begin = System.currentTimeMillis(); container.generateMapItems(numItems, false, em); long ... ) + " milliseconds"); System.out.println("Created " + numItems + " in " + (end - begin) + " milliseconds
7

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 ... ().begin();   MyEntity myEntity = new MyEntity();   myEntity.name = "DBFILE: " + db;   em.persist ... .getTransaction().begin();   // do anything - access an entity   MyEntity myEntity = em.find(MyEntity
7

Left join fetch behaviour doesn't retrieve children?

();         if (! em.getTransaction().isActive()) {             em.getTransaction().begin ... .getTransaction().begin();   }   MyEntity e1 = new MyEntity("parent1");   e1.addChild(String.valueOf ... ()) {    em.getTransaction().begin();   }   // Write 100 000 entities with 1 child for each   for (int
6

Issue with orphanRemoval and multiple EntityManagers

.getTransaction().begin();                        em.persist(newOrganisation);         em.getTransaction ... .com"));         em.getTransaction().begin();         //em.merge(originalOrganisation);         em
6

Schema-Update: Rename superclass and remove one subclass

(); // // Persist an entity em.getTransaction().begin(); ChildClassA entity1 = new ChildClassA ... (RenamedSuperClass.class); em.getTransaction().begin(); // do something ChildClassA entityWithID1
6

persisting object with long[][] arrays of array

.getTransaction().begin();         emg.persist(obj);         emg.getTransaction().commit();         emg ... ),                 random2(n),                 random2(n));         emg.getTransaction().begin();         emg.persist
6

Problem with byte arrays in JDO - internal exception

(); // Clear out existing objects pm.currentTransaction().begin(); Query query = pm ... ().commit(); pm.currentTransaction().begin(); Example example1 = new Example
6

find() cost unreasonable time!

.begin();   Nodes parent = new Nodes();   em.persist(parent);   queue.add(parent);   int iNum = 0 ... ();     trans.begin();    }   }   trans.commit();   System.out.printf("Total: %d, Level:%d %n", iNum
1

spuriously objectdb objects have null references

Object(); public static void begin(EntityManager threadEntityManager){ synchronized(lockBegin){ try { threadEntityManager.getTransaction().begin(); } catch (Exception e

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