Description
Per JPA sepc 3,1.:
/**
- Return the resource-level transaction object.
- The EntityTransaction instance may be used serially to
- begin and commit multiple transactions.
- @return EntityTransaction instance
- @throws IllegalStateException if invoked on a JTA
- EntityManager.
*/
public EntityTransaction getTransaction();
Currently EntityTransaction can not be reused after commit.