From c7ee2bb74ba1344509bb7f2cb88fc80d4057716c Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 22 Jun 2017 18:58:06 +0900 Subject: [PATCH] fixed noauth probe --- .../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 3a63506..b10e2f5 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 @@ -2,6 +2,8 @@ package com.loafle.overflow.module.noauthprobe.dao; import com.loafle.overflow.module.noauthprobe.model.NoAuthProbe; import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; /** @@ -11,4 +13,7 @@ import org.springframework.stereotype.Repository; public interface NoAuthProbeDAO extends JpaRepository { // NoAuthProbeDeprecate findByTempKey(NoAuthProbeDeprecate noAuthAgent); // List findAllByNoAuth(NoAuthProbeDeprecate noAuthAgent); + + @Query("SELECT n FROM NoAuthProbe n WHERE n.TEMP_PROBE_KEY = :tempProbeKey") + NoAuthProbe findByTempKey(@Param("tempProbeKey")String tempProbeKey); }