ing
This commit is contained in:
parent
24825ba850
commit
a490733ef6
|
@ -3,6 +3,7 @@ package com.loafle.overflow.model.target;
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
|
|
||||||
import com.loafle.overflow.model.infra.Infra;
|
import com.loafle.overflow.model.infra.Infra;
|
||||||
|
import com.loafle.overflow.model.meta.MetaTargetType;
|
||||||
import com.loafle.overflow.model.sensor.Sensor;
|
import com.loafle.overflow.model.sensor.Sensor;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -17,6 +18,7 @@ public class Target {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
private Infra infra;
|
private Infra infra;
|
||||||
|
private MetaTargetType metaTargetType;
|
||||||
private String name;
|
private String name;
|
||||||
private String description;
|
private String description;
|
||||||
private Integer sensorCount;
|
private Integer sensorCount;
|
||||||
|
@ -86,6 +88,16 @@ public class Target {
|
||||||
this.infra = infra;
|
this.infra = infra;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ManyToOne
|
||||||
|
@JoinColumn(name = "META_TARGET_TYPE_ID", nullable = false)
|
||||||
|
public MetaTargetType getMetaTargetType() {
|
||||||
|
return metaTargetType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMetaTargetType(MetaTargetType metaTargetType) {
|
||||||
|
this.metaTargetType = metaTargetType;
|
||||||
|
}
|
||||||
|
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
||||||
public Date getCreateDate() {
|
public Date getCreateDate() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user