🏕️ 상황재고 차감 로직을 구현하던 중 아래와 같은 JPQL을 작성하게 되었다.@Modifying@Query(""" UPDATE Product p SET p.stockQuantity = p.stockQuantity - :quantity WHERE p.id = :productId AND p.stockQuantity >= :quantity""")int decreaseStockAtomic(Long productId, Integer quantity);처음에는 특히 이 부분이 가장 이해하기 어려웠다.:quantity:productId이번 글에서는 JPQL의 :파라미터 문법이 무엇인지, 그리고 왜 사용하는지 간단하게 정리해보려고 한다.: 파라미터 문법이란?JPQL에서는 메서드의 파라미터 ..