Home » Search

About begin

41-50 of 200 Refresh
JPA Doc
3

javax.persistence.EntityManager

. The EntityTransaction instance may be used serially to begin and commit multiple transactions. Returns
JPA Doc
3

javax.persistence.EntityTransaction

begin() Start a resource transaction. Start a resource transaction. Throws: IllegalStateException
Forum
3

Selective merge/cascade of detatched entity

to: EntityManager em = emf.getEntityManager(); em.getTransaction(). begin(); Company company = new Company("new ... : EntityManager em = emf.getEntityManager(); em.getTransaction(). begin(); Company company = new Company("new"); em.persist(company); em.getTransaction().commit(); em.getTransaction. begin(); for (Salesman s
Forum
3

evictAll() behavior

().commit(); pm.currentTransaction(). begin(); System.out.println("Cache size after commit= " + pm ... ) and there is a result OBJECTDB OUTPUT: main--testDbProvisioning Cache size before COMMIT/ BEGIN= 1 transient transient Cache size after COMMIT/ BEGIN= 2630 transient transient Cache size after pm.evict = 2630
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

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

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