diff --git a/src/main/java/com/libraryman_api/borrowing/BorrowingRepository.java b/src/main/java/com/libraryman_api/borrowing/BorrowingRepository.java index cbabd93..3acc4ef 100644 --- a/src/main/java/com/libraryman_api/borrowing/BorrowingRepository.java +++ b/src/main/java/com/libraryman_api/borrowing/BorrowingRepository.java @@ -11,7 +11,7 @@ @Repository public interface BorrowingRepository extends JpaRepository { -public Page getAllBorrowingsOfMember(int memberId, Pageable pageable) { +Page findByMember_memberId(int memberId, Pageable pageable); { try { Page borrowings = borrowingRepository.findByMember_memberId(memberId, pageable);