setRollbackOnly() - JPA EntityTransaction's method
Method javax.persistence.EntityTransaction
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
- ifisActive()
is false
- Since:
- JPA 1.0