About begin

51-60 of 200Refresh
Forum
2

Performance in large transactions

(); transaction.begin (); // the "problem" Query Entity2 x = //query (getSingleResult): "select e ... ); EntityTransaction transaction = entityManager.getTransaction(); transaction.begin (); for (i = 0; i ... .setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   // SLOW   long startTime
Forum
2

How to Use a SF with extended Persistence Context?

to the SF I get com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active. In principal The SF doesn't need to begin any transaction since it only get called by ... ] ... 61 more Caused by: com.objectdb.o._PersistenceException: Attempt to begin a new transaction
Forum
2

Merge Issue: Attempt to reuse an existing primary key value

.createEntityManager();         if (! em.getTransaction().isActive()) {             em.getTransaction().begin ... .getTransaction().isActive()) {             em.getTransaction().begin ... = emf.createEntityManager();         em.getTransaction().begin();         A a = new
Forum
2

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin(); create typeC o; em.persist ... . trans = em.getTransaction(); trans.begin(); create typeC o; em.persist(o); trans.commit(); 2 ... ();                for (int i = 0; i < 30; i++) {             em.getTransaction().begin
Forum
2

Insertion Speed Rate and Batch Load

= System.currentTimeMillis();         em.getTransaction().begin();         for (int i = 1; i <= count; i ... )             {                 em.getTransaction().commit();                 em.getTransaction().begin ... and every transaction/persit: 70K/second. em = emf.createEntityManager();   em.getTransaction().begin
Forum
2

Is it possible to remove parent/child entities without refresh?

.getTransaction().begin();   entityManager.persist(parentEntity);   parentEntity.addChild(new ChildEntity ... .find(ParentEntity.class, Long.valueOf(1));   entityManager.getTransaction().begin ... .getTransaction().begin();   ChildEntity childEntity2 = parentEntity.getChildren().get("childEntity2
Forum
2

Remove an entity which attributes were changed - OptimisticLockException

");         EntityManager em = emf.createEntityManager();         em.getTransaction().begin ... ();         em = emf.createEntityManager();         em.getTransaction().begin();         MyEntity e = em ... = emf.createEntityManager();         em.getTransaction().begin();         MyEntity entity = new
Forum
2

Unable to execute update query

();                 em.getTransaction().begin();         for (int i = 0; i < 400000; i ... .getTransaction().begin();         Query query = em.createQuery("UPDATE MyEntity e SET e.x = 7 ... ("Adding objects");         em.getTransaction().begin();         for (int i = 0; i < 1000000; i
Forum
2

Update more than 10000 entities by an update query fails

"); EntityManager emOne = emf.createEntityManager(); emOne.getTransaction().begin ... emTwo = emf.createEntityManager(); emTwo.getTransaction().begin(); emTwo ... .getTransaction().begin(); emThree.setFlushMode(FlushModeType.AUTO
Forum
1

@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