Jakarta Persistence (JPA) Method

void 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 EntityTransaction.isActive is false.
Since:
Jakarta Persistence (JPA) 1.0