Internal Website Search

1-10 of 200 resultsRefresh

Attempt to begin a new transaction when a transaction is active

.close(); emf.close(); } public void storeRecord(Record r) { em.getTransaction().begin ... ._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction

begin()

Method javax.persistence.EntityTransactionvoid begin()

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 ... : Attempt to begin a new transaction when a transaction is active Again, this used not ... to begin a new transaction when a transaction is active

Storing JPA Entity Objects

/java/jpa/EntityTransaction/begin">begin(); em.begin">begin(); em.().begin">begin(); for (int i = 1; i <= 1000000

CRUD Database Operations with JPA

().begin">begin(); for (int i = 0; i < 1000; i ... ">getTransaction().begin">begin(); em.getTransaction().begin

Database Connection using JPA

/jpa/EntityTransaction/begin">begin(); // Operations that modify the database should come ... >A transaction is started by a call to begin">begin

Updating JPA Entity Objects

/getTransaction">getTransaction().begin">begin(); employee ... /EntityTransaction/begin">begin(); employee.projects[0] = new Project(); // not detected automatically

begin()

Method javax.jdo.Transactionvoid begin() Begin

[ODB1] Chapter 6 - Persistent Objects

.currentTransaction().begin(); Person person = new Person("George", "Bush"); Address address ... .currentTransaction().begin(); pm.makePersistent(person); pm.currentTransaction().commit ... class="pre-java">pm.currentTransaction().begin(); Person person = new Person("George", "Bush"); pm

[ODB1] Chapter 2 - A Quick Tour

main(String[] args) { 10 11 // Create or open a database and begin a transaction ... "); 14 pm.currentTransaction().begin(); 15 16 // Obtain a persistent ... // Begin the transaction: 32 pm.currentTransaction().begin(); 33