ObjectDB ObjectDB

Internal Website Search

81-90 of 200 resultsRefresh

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

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

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

Optimistic Locking

: PersistenceManager pm = pmf.getPersistenceManager(); pm.currentTransaction().begin(); pm ... (); Counter c1 = pm1.getExtent(Counter.class).iterator().next(); pm1.currentTransaction().begin ... ().next(); pm2.currentTransaction().begin(); c2.increase(); // First user commits - succeeds

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

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

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

= getEntityManager(); em.getTransaction().begin(); em.persist(moment); em ... { em = getEntityManager(); em.getTransaction().begin(); em.persist(chart ... { em = getEntityManager(); em.getTransaction().begin(); chart = em

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

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

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

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