About begin

1-10 of 200Refresh
JDO Doc
138

begin()

Method javax.jdo.Transaction void begin() Begin a transaction. The type of transaction is determined by the setting of the Optimistic flag. Throws: JDOUserException - if transactions are managed by a container in the managed environment, or if the transaction is already active. Since: JDO 1.0 See Also: setOptimistic getOptimistic
JPA Doc
137

begin()

Method javax.persistence.EntityTransaction void begin() Start a resource transaction. Throws: IllegalStateException - if isActive() is true Since: JPA 1.0
Issue
48

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

._PersistenceException: Attempt to begin a new transaction when a transaction is active at com.sun.ejb ... .UserException: Attempt to begin a new transaction when a transaction is active Again, this used not to happen ... ) //'com.objectdb.o.UserException: Attempt to begin a new transaction when a transaction
Forum
46

Attempt to begin a new transaction when a transaction is active

.getTransaction().begin(); em.persist(r); em.getTransaction().commit(); System.out.println("Entity ... ._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root
Manual
18

Storing JPA Entity Objects [2011-05-04]

", "Joseph", "Wurzelbacher"); em.getTransaction().begin(); em.persist(employee); em ... .setAddress(address); em.getTransaction().begin(); em.persist(employee); em.getTransaction ... can be used to save memory in large transactions: em.getTransaction().begin(); for (int i = 1; i
Manual
18

Storing JPA Entity Objects

", "Joseph", "Wurzelbacher"); em.getTransaction().begin(); em.persist(employee); em ... .setAddress(address); em.getTransaction().begin(); em.persist(employee); em.getTransaction ... can be used to save memory in large transactions: em.getTransaction().begin(); for (int i = 1; i
Manual
18

Storing JPA Entity Objects [2019-08-09]

", "Joseph", "Wurzelbacher"); em.getTransaction().begin(); em.persist(employee); em ... .setAddress(address); em.getTransaction().begin(); em.persist(employee); em.getTransaction ... can be used to save memory in large transactions: em.getTransaction().begin(); for (int i = 1; i
Manual
16

CRUD Database Operations with JPA [2011-02-11]

code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int i ... transaction: em.getTransaction().begin(); em.remove(p); // delete entity em.getTransaction ... .getTransaction().begin(); p.setX(p.getX() + 100); // update entity em.getTransaction().commit
Manual
16

CRUD Database Operations with JPA

code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int i ... transaction: em.getTransaction().begin(); em.remove(p); // delete entity em.getTransaction ... .getTransaction().begin(); p.setX(p.getX() + 100); // update entity em.getTransaction().commit
Manual
11

Updating JPA Entity Objects [2011-09-24]

.getTransaction().begin(); employee.setNickname("Joe the Plumber"); em.getTransaction().commit ... ); em.getTransaction().begin(); employee.projects[0] = new Project(); // not detected