diff --git a/pom.xml b/pom.xml index 5269c4e..2052364 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.loafle.overflow commons-java jar - 1.0.93-SNAPSHOT + 1.0.94-SNAPSHOT com.loafle.overflow.commons-java diff --git a/src/main/java/com/loafle/overflow/model/target/Target.java b/src/main/java/com/loafle/overflow/model/target/Target.java index 36756df..ccc18f3 100644 --- a/src/main/java/com/loafle/overflow/model/target/Target.java +++ b/src/main/java/com/loafle/overflow/model/target/Target.java @@ -38,9 +38,9 @@ public class Target { @Column(name = "SENSOR_COUNT", nullable = false) private Integer sensorCount; - // @ManyToOne - // @JoinColumn(name = "META_TARGET_STATUS_ID", nullable = false) - // private MetaTargetStatus metaTargetStatus; + @ManyToOne + @JoinColumn(name = "META_TARGET_STATUS_ID", nullable = false) + private MetaTargetStatus metaTargetStatus; @Temporal(TemporalType.TIMESTAMP) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @@ -53,13 +53,13 @@ public class Target { return id; } - // public MetaTargetStatus getMetaTargetStatus() { - // return metaTargetStatus; - // } + public MetaTargetStatus getMetaTargetStatus() { + return metaTargetStatus; + } - // public void setMetaTargetStatus(MetaTargetStatus metaTargetStatus) { - // this.metaTargetStatus = metaTargetStatus; - // } + public void setMetaTargetStatus(MetaTargetStatus metaTargetStatus) { + this.metaTargetStatus = metaTargetStatus; + } public void setId(Long id) { this.id = id;