From 3431b718b06fc71bbfef6113a2e5204b131c2dde Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 23 Jun 2017 14:46:03 +0900 Subject: [PATCH] added list --- .../overflow/module/noauthprobe/dao/NoAuthProbeDAO.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java b/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java index 7b70fda..2b00ae3 100644 --- a/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java +++ b/src/main/java/com/loafle/overflow/module/noauthprobe/dao/NoAuthProbeDAO.java @@ -6,6 +6,8 @@ import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; +import java.util.List; + /** * Created by root on 17. 5. 30. */ @@ -16,4 +18,7 @@ public interface NoAuthProbeDAO extends JpaRepository { @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey") NoAuthProbe findByTempKey(@Param("tempProbeKey")String tempProbeKey); + + @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId") + List findAllByDomainId(@Param("domainId")long domainId); }