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