Created
January 27, 2023 20:24
-
-
Save kubawieczorek/1ac53a854f38e6862b4ce378a5dce04d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
decreaseAccountBalance(updateAccountStatement, accountFrom, amount); | |
if (updateAccountStatement.executeUpdate() == 0) { | |
throw new RuntimeException("Optimistic locking exception on source account"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment