About begin

51-60 of 200Refresh
JPA Doc
2

getTransaction()

Method javax.persistence.EntityManager EntityTransaction getTransaction() Return the resource-level EntityTransaction object. The EntityTransaction instance may be used serially to begin and commit multiple transactions. Returns: EntityTransaction instance Throws: IllegalStateException - if invoked on a JTA entity manager Since: JPA 1.0
JDO Doc
2

javax.jdo.JDOHelper

of the ObjectId of the parameter instance as of the beginning of the transaction. Since: JDO 1.0
JDO Doc
2

javax.jdo.PersistenceManager

, then this method returns the identity as of the beginning of the transaction. The value returned by
JDO Doc
2

javax.jdo.spi.StateInterrogation

of the beginning of the transaction. Since: JDO 2.0 See Also: PersistenceManager.getObjectId(Object pc
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