About begin

61-70 of 200Refresh
Forum
2

Remove a modified entity cause an optimistic lock exception

= emf.createEntityManager();         em.getTransaction().begin();         em.persist(new MyEntity ... .createEntityManager();         em.getTransaction().begin();         MyEntity e = em.find(MyEntity.class, 1 ... (FlushModeType.AUTO);         em.getTransaction().begin();         em.persist(new MyEntity
Issue
2

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

parentEntity = new ParentEntity();   entityManager.getTransaction().begin();   entityManager.persist(parentEntity);   entityManager.getTransaction().commit();   entityManager.getTransaction().begin ... ");         EntityManager em = emf.createEntityManager();         em.getTransaction().begin();         MyEntity
Forum
2

Schema Update: class hierarchy change

.createEntityManager();   // Persist an entity   em.getTransaction().begin();   MyEntity entity = new ... .persist(entity);   em.getTransaction().commit();     em.getTransaction().begin();   MyEntity ... ();   //don't create a new object!   //  // Persist an entity //  em.getTransaction().begin
Forum
2

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

) { try { transaction.begin(); entityManager.persist(o ... { transaction.begin(); entityManager.persist(child); if (child ... .begin(); entityManager.persist(o); transaction.commit(); } catch
Issue
2

stress test -> com.objectdb.o.InternalException: null

is started (with the already deployed app), then the load test begins. It seems to be related ... ");                 EntityManager em1 = emf.createEntityManager();         em1.getTransaction().begin();         em1.persist ... .createEntityManager();         em2.getTransaction().begin();         em2.persist(new TestEntity());         em2
Issue
2

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
2

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
2

Cannot save or update entity on Spring App

().isActive()) em.getTransaction().begin(); em.persist(guest); em ... (); if (! em.getTransaction().isActive()) em.getTransaction().begin(); em ... .getTransaction().begin(); Query q = em.createQuery(query); for(String s : map.keySet
Forum
2

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
2

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