ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh
8

Items in list are doubled, when the entity class is not enhanced

.createQuery("select c from Customer c").getResultList(); em.getTransaction().begin ... = em.createQuery("select i from Item i").getResultList(); em.getTransaction().begin ... (); em.getTransaction().begin(); Customer c = new Customer(); em
8

Date field Index is corrupted due to time change

.createEntityManager();         em.getTransaction().begin();                 // Add records ... .createQuery("SELECT COUNT(r) FROM DateTime AS r");         em.getTransaction().begin();         Long r ... ");             em.getTransaction().begin();             q.executeUpdate();             em.getTransaction
8

@OneToMany(fetch = FetchType.LAZY) list is always null

) { try { transaction.begin(); entityManager.persist(o ... { transaction.begin(); entityManager.persist(child); if (child ... { transaction.begin(); entityManager.persist(o); transaction.commit
7

Database size is much larger than expected (x2)

();         for (int i = 0; i < 1000; i++) {             em.getTransaction().begin();             em.persist ... ;wejhfoiasuydfajdfljweoifasldjfiejlsjdfaiowufajsdfieuajdfjiaejf;ajdfie;lajdkfjiesljdafjeia;jfe";   trans.begin();   for (; i<iNumber; i++){    Uris uri = new ... ("Url = %s%n%n", uri.getsUrl());     em.clear();     trans.begin();    }   }   trans.commit
7

Database(*.odb) file size on disk

);    System.out.println("create");    for (int i = 0; i < objects; i++) {     em.getTransaction().begin ... ");    // add references    for (int i = 0; i < objects; i++) {     em.getTransaction().begin ... ++) {     em.getTransaction().begin();     EntityA entity = em.find(EntityA.class, entityAIds.get(i
7

Error using query with MAX() function

(); } public void doit() { for(int i=1;i<32766;i++) { em.getTransaction().begin ... .getTransaction().begin(); CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<Object> q = cb ... (); em.getTransaction().begin(); } After much trying to reliably recreate this problem
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

Question about modification

valor = menu.nextInt(); em.getTransaction().begin(); Query consulta = em.createQuery("UPDATE vehículos ... valor = menu.next(); em.getTransaction().begin(); Query consulta = em.createQuery("UPDATE " + entidad ... .nextLine(); em.getTransaction().begin(); Query consulta = em.createQuery("UPDATE " + "SET
7

Performance and memory usage of queries

);    em.getTransaction().begin();    MyEntity myEntity = new MyEntity();    myEntity = em.merge ... .setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   Query q = em.createQuery("DELETE FROM ... , but indeed requires a lot of memory:     em.getTransaction().begin();     Query q = em.createQuery
7

New to Product & Having An Issue

, "dOne", null); try{ em.getTransaction().begin(); em.persist(department ... (this.foundResult); try{ em.getTransaction().begin(); em.remove ... .getResultList(); em.getTransaction().begin(); for(Department d

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