Created
May 15, 2021 09:28
-
-
Save dev-aritra/1e4a93d3d8ef7a484ccb61b8246d49ff 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(value = "select * from products where id = ?1 for update", nativeQuery = true) | |
Optional<Product> findByIdWithWriteLock(Long productId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment