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); }