From 41cd2a6c99b2b75ae037e4ceac3dd6968e158eda Mon Sep 17 00:00:00 2001 From: Jaewon Lee <58386334+jaewonLeeKOR@users.noreply.github.com> Date: Wed, 2 Oct 2024 01:08:51 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20#206=20Notification=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20N+1=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/notifiaction/repository/NotificationRepository.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/server/capple/domain/notifiaction/repository/NotificationRepository.java b/src/main/java/com/server/capple/domain/notifiaction/repository/NotificationRepository.java index 232dc374..79f54a46 100644 --- a/src/main/java/com/server/capple/domain/notifiaction/repository/NotificationRepository.java +++ b/src/main/java/com/server/capple/domain/notifiaction/repository/NotificationRepository.java @@ -3,12 +3,14 @@ import com.server.capple.domain.notifiaction.entity.Notification; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Slice; +import org.springframework.data.jpa.repository.EntityGraph; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.time.LocalDateTime; public interface NotificationRepository extends JpaRepository { + @EntityGraph(attributePaths = {"notificationLog"}) @Query("select " + "n " + "from Notification n " +