From 285edbee263bb16bfa3807041c4a0b1440d74953 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 23 Jun 2017 18:57:10 +0900 Subject: [PATCH] fixed query --- .../overflow/module/noauthprobe/dao/NoAuthProbeDAO.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 2b00ae3..8277673 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 @@ -1,5 +1,6 @@ package com.loafle.overflow.module.noauthprobe.dao; +import com.loafle.overflow.module.domain.model.Domain; import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; @@ -16,9 +17,9 @@ public interface NoAuthProbeDAO extends JpaRepository { // NoAuthProbeDeprecate findByTempKey(NoAuthProbeDeprecate noAuthAgent); // List findAllByNoAuth(NoAuthProbeDeprecate noAuthAgent); - @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey") - NoAuthProbe findByTempKey(@Param("tempProbeKey")String tempProbeKey); +// @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey") + NoAuthProbe findByTempProbeKey(String tempProbeKey); - @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId") - List findAllByDomainId(@Param("domainId")long domainId); +// @Query("SELECT n FROM NoAuthProbe n WHERE n.domain.id = :domainId") + List findAllByDomain(Domain domain); }