getTransaction() - JPA EntityManager's method
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