About EntityTransaction

11-20 of 29Refresh
JPA Doc
12

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
JPA Doc
9

javax.persistence.RollbackException

: Serializable Thrown by the persistence provider when EntityTransaction.commit() fails. Since: JPA 1.0 See Also: javax.persistence.EntityTransaction.commit() RollbackException() Constructs a new
JPA Doc
6

javax.persistence.LockModeType

the PessimisticLockException and ensure that the JTA transaction or EntityTransaction
Forum
3

Bug: ClassCastException by retrieval

.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction ... = emf.createEntityManager();   EntityTransaction trans = em.getTransaction();   //* block-1
Forum
3

find() cost unreasonable time!

.EntityManager; import javax.persistence.EntityTransaction; import javax.persistence.Query; import fpg ... ; private static EntityTransaction trans = SingleManager.getTrans(); private static int iBegin = 0
Forum
3

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

) {   javax.persistence.EntityTransaction et = em.getTransaction();   if ( et.isActive ... () {   withinTransaction("findAllGuests");   javax.persistence.EntityTransaction et = em.getTransaction
Forum
3

Mysterious "Attempt to persist a reference to a non managed instance" error

.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import ... o = new Ostrich();       Index d = new Index(o, dEntries);         EntityTransaction tx = em
Issue
3

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

.transaction == null"); } else { EntityTransaction t = em.getTransaction ... !"); } else { EntityTransaction t = em.getTransaction(); log_info($i, "AFTER: em.transaction
Forum
3

Performance in large transactions

(FlushModeType.AUTO); EntityTransaction transaction = entityManager.getTransaction ... ); EntityTransaction transaction = entityManager.getTransaction(); transaction.begin (); for (i = 0; i
Forum
3

Unexpected NoSuchFieldError exception

(error 612) at com.objectdb.jpa.EMImpl.begin(EMImpl.java:275) at javax.persistence.EntityTransaction ... .EntityTransaction$begin.call(Unknown Source) at app.database.ObjectDbDatabase.transact(ObjectDbDatabase.groovy