Home » Search

About begin

41-50 of 200Refresh
JDO Doc
2

javax.jdo.spi.StateManager

, this method returns the identity as of the beginning of the transaction. Parameters: pc - the calling
JPA Doc
2

javax.persistence.EntityManager

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

javax.persistence.EntityTransaction

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

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