From 88eda2b5e6e121179070a08ce221fd0b0c5d9252 Mon Sep 17 00:00:00 2001 From: insanity Date: Tue, 4 Jul 2017 17:17:26 +0900 Subject: [PATCH] probe modify --- .../module/probe/service/ProbeService.java | 4 ++-- .../module/probe/service/ProbeTaskService.java | 4 ++-- .../module/probe/type/ProbeStatusType.java | 18 ------------------ 3 files changed, 4 insertions(+), 22 deletions(-) delete mode 100644 src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java index f3903ce..3b78f8a 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeService.java @@ -17,8 +17,8 @@ public class ProbeService { @Autowired private ProbeDAO probeDAO; - public void regist(Probe probe) { - this.probeDAO.save(probe); + public Probe regist(Probe probe) { + return this.probeDAO.save(probe); } public List readAllByDomain(Domain domain) { diff --git a/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java b/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java index d3d3929..8198f79 100644 --- a/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java +++ b/src/main/java/com/loafle/overflow/module/probe/service/ProbeTaskService.java @@ -17,8 +17,8 @@ public class ProbeTaskService { @Autowired private ProbeTaskDAO probeTaskDAO; - public void regist(ProbeTask probeTask) { - this.probeTaskDAO.save(probeTask); + public ProbeTask regist(ProbeTask probeTask) { + return this.probeTaskDAO.save(probeTask); } public List readAllByProbe(Probe probe) { diff --git a/src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java b/src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java deleted file mode 100644 index 1e4c602..0000000 --- a/src/main/java/com/loafle/overflow/module/probe/type/ProbeStatusType.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.loafle.overflow.module.probe.type; - -/** - * Created by root on 17. 6. 23. - */ -public enum ProbeStatusType { - I("INITIAL"), - N("NORMAL"); - - - private String stringValue; - ProbeStatusType(String string) {stringValue = string;} - - @Override - public String toString() { - return stringValue; - } -}