About begin

71-80 of 200Refresh
Issue
1

Unexpected exception (Error 990) com.objectdb.o.InternalException

();                 // Persist an entity with an embeddable:         em.getTransaction().begin ... :                  em.getTransaction().begin();         embeddable.update();         em.getTransaction().commit ... :         em.getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction
Forum
1

Updating Entities

().begin();   this.rate = rate;   Main.paygradeDB.getTransaction().commit();   return true ... -> System.out.println(p.getRate())); Main.paygradeDB.getTransaction().begin(); modifyTo ... ... Main.employeeDB.getTransaction().begin(); for(Employee e : Query.employeesByPaygrade(p
Forum
1

"Attempt to lock a non entity object" error

();         Person p = new Person("Ron");         em.getTransaction().begin();         em.persist(p ... ().setRetainValues(true);         em.getTransaction().begin();         p = em.find(Person.class, 1 ... and first lock: " + p.name);         em.getTransaction().rollback();         em.getTransaction().begin
Issue
1

[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 ... ; try { em = getEntityManager(); em.getTransaction().begin(); em ... ; try { em = getEntityManager(); em.getTransaction().begin
Forum
1

Database size is much larger than expected (x2)

.createEntityManager();         for (int i = 0; i < 1000; i++) {             em.getTransaction().begin ... ;wejhfoiasuydfajdfljweoifasldjfiejlsjdfaiowufajsdfieuajdfjiaejf;ajdfie;lajdkfjiesljdafjeia;jfe";   trans.begin();   for (; ibegin
Forum
1

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
Forum
1

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 ... ();   em.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   MyEntity myEntity = new ... .createEntityManager();   em.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin
Forum
1

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 q = cb ... .getTransaction().commit(); em.getTransaction().begin(); } After much trying to reliably
Forum
1

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
Forum
1

Left join fetch behaviour doesn't retrieve children?

();         if (! em.getTransaction().isActive()) {             em.getTransaction().begin ... .getTransaction().isActive()) {    em.getTransaction().begin();   }   MyEntity e1 = new MyEntity ... ();   if (!em.getTransaction().isActive()) {    em.getTransaction().begin();   }   // Write 100 000