About EntityTransaction

11-20 of 32Refresh
Manual
35

Obtaining a JPA Database Connection

content also require an EntityTransaction instance. Obtaining an EntityManagerFactory Obtaining ... them to speed up future EntityManager construction. Using an EntityTransaction Operations that modify ... EntityTransaction instances that the getTransaction method returns. When a transaction is active
Manual
31

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
JPA Doc
13

javax.persistence.EntityManager

- if the entity state cannot be accessed Since: JPA 1.0 EntityTransaction getTransaction() Return the resource-level EntityTransaction object. Return the resource-level EntityTransaction object. The EntityTransaction instance may be used serially to begin and commit multiple transactions. Returns
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
8

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
2

Bug: ClassCastException by retrieval

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

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
2

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
2

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