안녕하세요. hia의 개발 story입니다. 이번에는 쿼리 메서드를 이용하여 메서드 이름을 'deleteBy'로 시작하면 특정 조건에 맞는 데이터를 삭제할 수 있습니다. 이를 위해 만들어 둔 Repository interface에 아래와 같이 메서드를 작성해 줍니다. public interface SampleRepository extends JpaRepository { void deleteSampleByIdLessThan(Long l); } 테스트 코드를 작성하여 메서드를 테스트해보도록 합시다. @Commit @Transactional @Test public void testDeleteQueryMethod(){ sampleRepository.deleteSampleByIdLessThan(10l); } 이때..