Created
May 9, 2021 15:08
-
-
Save dev-aritra/69459150adcbf98ca400366bab4e6062 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
@Query("update products set available_units = available_units - 1 where id = ?1") | |
@Modifying | |
void decrementAvailableUnitsCountBy1(Long productId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment