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

Best practise loading big data

"); EntityManager em = emf.createEntityManager(); // create values em.getTransaction().begin ... .getTransaction().commit(); sbc = null; long counter = 0; em.getTransaction().begin(); sbc = em.find ... (EntityManager em) {         int valueCount = 0;          em.getTransaction().begin
Forum
1

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