About begin

1-10 of 200Refresh
JDO Doc
81

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
80

begin()

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

Database Connection using JPA

via the getTransaction method: try { em.getTransaction().begin(); // Operations ... (); } A transaction is started by a call to begin and ended by a call to either commit or rollback. All the operations
Manual
48

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
Issue
29

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
28

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
21

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
19

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
13

Setting and Tuning of JPA Queries

). The setFirstResult method is used to specify where the result window begins, i.e. how many results at the beginning of the complete result list should be skipped and ignored. The setMaxResults method
Manual
13

Updating JPA Entity Objects

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