About EntityTransaction

11-20 of 36Refresh
JPA Doc
49

JPA Reference (JavaDoc)

Java/JPA API Reference (based on the JPA 3 JavaDoc)
Manual
49

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database.
Manual
49

Updating JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database.
Manual
45

Obtaining a JPA Database Connection

content also require an EntityTransaction instance. Obtaining an EntityManagerFactory Obtaining ... construction. Using an EntityTransaction Operations that modify database content, such as store ... (); There is a one to one relationship between an EntityManager instance and its associated EntityTransaction instances
Forum
31

EntityTransaction.commit() does not release a pessimistic lock

It appears that EntityTransaction.commit() does not release a pessimistic lock -> test code below. I tried it in with the current (2.7.6_01) and older versions (2.6.9, 2.5.7, 2.4.7) with the same result. (side note: EntityTransaction.rollback() releases it correctly) // Account.java package
JDO Doc
17

javax.jdo.JDOEntityManager

to the UTC Date as seen by the server Since: JDO 2.1 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
17

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
15

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
11

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
7

javax.persistence.LockModeType

the PessimisticLockException and ensure that the JTA transaction or EntityTransaction