From ef94e4a1a4bd7c5a43a013aa6ebe998107f155a5 Mon Sep 17 00:00:00 2001 From: llddang Date: Mon, 26 Aug 2024 14:09:38 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A0=88=ED=8F=AC=EC=A7=80=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=EC=97=90=20member=5Fid=EB=A1=9C=20=EA=B0=92=EC=9D=84?= =?UTF-8?q?=20=EC=B0=BE=EC=9D=84=20=EC=88=98=20=EC=9E=88=EB=8A=94=20?= =?UTF-8?q?=ED=95=A8=EC=88=98=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #158 --- .../member/domain/repository/FacultyMemberRepository.java | 3 +++ .../member/domain/repository/StudentMemberRepository.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/backend/src/main/java/sw_css/member/domain/repository/FacultyMemberRepository.java b/backend/src/main/java/sw_css/member/domain/repository/FacultyMemberRepository.java index 63271d6b..8b0551b3 100644 --- a/backend/src/main/java/sw_css/member/domain/repository/FacultyMemberRepository.java +++ b/backend/src/main/java/sw_css/member/domain/repository/FacultyMemberRepository.java @@ -1,8 +1,11 @@ package sw_css.member.domain.repository; +import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import sw_css.member.domain.FacultyMember; public interface FacultyMemberRepository extends JpaRepository { boolean existsByMemberId(Long memberId); + + Optional findByMemberId(Long memberId); } diff --git a/backend/src/main/java/sw_css/member/domain/repository/StudentMemberRepository.java b/backend/src/main/java/sw_css/member/domain/repository/StudentMemberRepository.java index 30df4707..4ad52fcc 100644 --- a/backend/src/main/java/sw_css/member/domain/repository/StudentMemberRepository.java +++ b/backend/src/main/java/sw_css/member/domain/repository/StudentMemberRepository.java @@ -1,5 +1,6 @@ package sw_css.member.domain.repository; +import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import sw_css.member.domain.StudentMember; @@ -7,4 +8,6 @@ public interface StudentMemberRepository extends JpaRepository findByMemberId(Number memberId); }