EntityTransaction getTransaction()
Return the resource-level
EntityTransaction
object. The EntityTransaction
instance may be used serially to begin and commit multiple transactions. - Return:
- EntityTransaction instance
- Throws:
- IllegalStateException - if invoked on a JTA entity manager
- Since:
- JPA 1.0