From 51c05e37e71b2a37bff56a52e8c8d1413f15e0f9 Mon Sep 17 00:00:00 2001 From: Sanchit Chauhan <150342364+sanchitc05@users.noreply.github.com> Date: Sat, 9 Nov 2024 19:43:48 +0530 Subject: [PATCH] Update BorrowingRepository.java --- .../java/com/libraryman_api/borrowing/BorrowingRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);