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