From 0550d5ea0f1d1f562e927c75583bbf921c0a28ab Mon Sep 17 00:00:00 2001 From: insanity Date: Tue, 24 Apr 2018 18:54:44 +0900 Subject: [PATCH] bug fix --- .../model/meta/MetaSensorDisplayItem.java | 10 ++++++++ .../service/central/infra/InfraService.java | 24 +++++++++++++------ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/loafle/overflow/model/meta/MetaSensorDisplayItem.java b/src/main/java/com/loafle/overflow/model/meta/MetaSensorDisplayItem.java index 0cf9168..87a4cd5 100644 --- a/src/main/java/com/loafle/overflow/model/meta/MetaSensorDisplayItem.java +++ b/src/main/java/com/loafle/overflow/model/meta/MetaSensorDisplayItem.java @@ -17,6 +17,7 @@ public class MetaSensorDisplayItem { private MetaSensorItemUnit unit; private Date createDate; private MetaSensorItemType itemType; + private String key; @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @@ -77,4 +78,13 @@ public class MetaSensorDisplayItem { public void setItemType(MetaSensorItemType itemType) { this.itemType = itemType; } + + @Column(name = "KEY", nullable = false, length = 50) + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } } diff --git a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java index 35a7619..3c154a9 100644 --- a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java +++ b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java @@ -1,15 +1,25 @@ package com.loafle.overflow.service.central.infra; +import java.util.List; + +import com.loafle.overflow.core.model.PageParams; +import com.loafle.overflow.model.domain.Domain; +import com.loafle.overflow.model.infra.Infra; +import com.loafle.overflow.model.probe.Probe; +import com.loafle.overflow.model.target.Target; + +import org.springframework.data.domain.Page; + /** * Created by insanity on 17. 6. 28. */ public interface InfraService { - // Infra regist(Infra infra); - // Infra read(long id); - // Page readAllByProbe(Probe probe, PageParams pageParams); - // Page readAllByDomain(Domain domain, PageParams pageParams); - // List readAllTargetByDomain(Domain domain); - // List readAllTargetByProbeList(List probeList); - // Infra readByTarget(Target target); + Infra regist(Infra infra); + Infra read(long id); + Page readAllByProbe(Probe probe, PageParams pageParams); + Page readAllByDomain(Domain domain, PageParams pageParams); + List readAllTargetByDomain(Domain domain); + List readAllTargetByProbeList(List probeList); + Infra readByTarget(Target target); }