JPA Methodin jakarta.persistence.EntityTransactionvoid setRollbackOnly() Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back. Throws:IllegalStateException - if {@link #isActive()} is falseSince:JPA 1.0