ObjectDB ObjectDB

Internal Website Search

81-90 of 200 resultsRefresh
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

"Attempt to lock a non entity object" error

();         Person p = new Person("Ron");         em.getTransaction().begin();         em.persist(p);         em ... ().setRetainValues(true);         em.getTransaction().begin();         p = em.find(Person.class, 1 ... : " + p.name);         em.getTransaction().rollback();         em.getTransaction().begin
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

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

     .lookup("java:comp/UserTransaction");    tx.begin();    SLSBObjDbRemote bean ... ");    tx.begin();    SLSBObjDbRemote bean = (SLSBObjDbRemote) context      .lookup("SLSBObjDb ... . what was there at the beginning of the transaction as then operated on by the subsequent transactional
7

Cannot save or update entity on Spring App

().begin(); em.persist(guest); em.getTransaction().commit(); em ... ()) em.getTransaction().begin(); em.merge(guest); em.getTransaction ... .getTransaction().isActive()) em.getTransaction().begin(); Query q = em
7

EntityTransaction.commit() does not release a pessimistic lock

.getTransaction().begin(); em.persist(new Account(0)); em.getTransaction().commit(); // update EntityManager em1 = emf.createEntityManager(); em1.getTransaction().begin ... .getTransaction().begin(); Account a2 = em2.find(Account.class, 0, LockModeType.PESSIMISTIC_READ
1

Best practise loading big data

(); // create values em.getTransaction().begin(); MyStepBlockCollection sbc ... = null; long counter = 0; em.getTransaction().begin(); sbc = em.find ... populateDatabase(EntityManager em) {         int valueCount = 0;          em.getTransaction().begin
1

Unexpected exception (Error 990) - Merge with no Transaction

);          EntityManager em = emf.createEntityManager();      em.getTransaction().begin ... ();      em.close();      em = emf.createEntityManager();      em.getTransaction().begin ... always fails for this use case. I can make the code work by beginning a transaction in the last step
1

Sometimes cascade persist does not work during commit

.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin(); em.createQuery ... (FlushModeType.AUTO); em.getTransaction().begin(); Query query = em.createQuery ... with complete begin-commit transactions, then this indeed should work. support Support
1

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

it will report: Java/JVM version: 1.8 Java/JVM detail version: 1.8.0_74 ObjectDB enhancer: begin ... (); format().out("Persist project.."); em.getTransaction().begin(); em ... /JVM detail version: 1.8.0_74 ObjectDB enhancer: begin: (all classes within entity packages): javac

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