commit() - JPA EntityTransaction's method
Method javax.persistence.EntityTransaction
void commit()
Commit the current resource transaction, writing any unflushed changes to the database.
- Throws:
-
IllegalStateException
- ifisActive()
is false- RollbackException - if the commit fails
- Since:
- JPA 1.0