I have questing regarding JPA persistence. I want to change values of specific column (for e.g. 1 to 2), and fetch corresponding rows further (which are having column value 2). If other service gives some error, I want to revert column values to 1.
Can we do this in JPA?