diff --git a/src/main/java/com/loafle/overflow/module/probe/dao/JPAAgentDAO.java b/src/main/java/com/loafle/overflow/module/probe/dao/JPAAgentDAO.java deleted file mode 100644 index 6093333..0000000 --- a/src/main/java/com/loafle/overflow/module/probe/dao/JPAAgentDAO.java +++ /dev/null @@ -1,32 +0,0 @@ -//package com.loafle.overflow.module.agent.dao; -// -//import com.loafle.overflow.module.probe.model.Agent; -//import com.loafle.overflow.commons.dao.JPABaseDAO; -//import com.loafle.overflow.module.member.model.Member; -// -//import javax.persistence.Query; -//import java.util.ArrayList; -//import java.util.List; -// -// -///** -// * Created by insanity on 17. 5. 29. -// */ -//public class JPAAgentDAO extends JPABaseDAO implements AgentDAO { -// -// public List findAgentListByMemberId(Member member) { -// Query query = getEntityManager() -// .createNativeQuery("SELECT agt.* FROM AGENT agt WHERE agt.MEMBER_ID = :member", Agent.class); -// query.setParameter("member", member.getId()); -// -// List list = new ArrayList<>(); -// try { -// list = query.getResultList(); -// }catch(Exception e) { -// e.printStackTrace(); -// }finally { -// return list; -// } -// } -// -//} diff --git a/src/main/java/com/loafle/overflow/module/probe/dao/AgentDAO.java b/src/main/java/com/loafle/overflow/module/probe/dao/ProbeDAO.java similarity index 75% rename from src/main/java/com/loafle/overflow/module/probe/dao/AgentDAO.java rename to src/main/java/com/loafle/overflow/module/probe/dao/ProbeDAO.java index 63201ba..63142fb 100644 --- a/src/main/java/com/loafle/overflow/module/probe/dao/AgentDAO.java +++ b/src/main/java/com/loafle/overflow/module/probe/dao/ProbeDAO.java @@ -2,11 +2,12 @@ package com.loafle.overflow.module.probe.dao; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; +import sun.management.Agent; /** * Created by insanity on 17. 5. 29. */ @Repository -public interface AgentDAO extends JpaRepository { +public interface ProbeDAO extends JpaRepository { // public List findAgentListByMemberId(Member member); } \ No newline at end of file