JPA Methodin javax.persistence.EntityTransactionvoid commit() Commit the current resource transaction, writing any unflushed changes to the database. Throws:IllegalStateException - if isActive() is falseRollbackException - if the commit failsSince:JPA 1.0