some model

This commit is contained in:
insanity 2018-06-29 13:37:37 +09:00
parent 1acd7d83ea
commit 28ae97cfdf
4 changed files with 16 additions and 14 deletions

View File

@ -13,7 +13,7 @@
<groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId>
<packaging>jar</packaging>
<version>1.0.110-SNAPSHOT</version>
<version>1.0.111-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name>
<properties>

View File

@ -13,10 +13,6 @@ public class MetaCrawler {
@Id
private Short id;
@ManyToOne
@JoinColumn(name = "META_CRAWLER_CONTAINER_ID", nullable = false)
private MetaCrawlerContainer metaCrawlerContainer;
@Column(name = "KEY", nullable = true, length = 50)
private String key;
@ -31,7 +27,6 @@ public class MetaCrawler {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
public Short getId() {
return id;
}
@ -40,14 +35,6 @@ public class MetaCrawler {
this.id = id;
}
public MetaCrawlerContainer getMetaCrawlerContainer() {
return metaCrawlerContainer;
}
public void setMetaCrawlerContainer(MetaCrawlerContainer metaCrawlerContainer) {
this.metaCrawlerContainer = metaCrawlerContainer;
}
public String getKey() {
return key;
}

View File

@ -33,6 +33,10 @@ public class MetaCrawlerMapping {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
@ManyToOne
@JoinColumn(name = "META_CRAWLER_CONTAINER_ID", nullable = false)
private MetaCrawlerContainer metaCrawlerContainer;
public Long getId() {
return id;
}
@ -73,6 +77,14 @@ public class MetaCrawlerMapping {
isDefault = aDefault;
}
public MetaCrawlerContainer getMetaCrawlerContainer() {
return metaCrawlerContainer;
}
public void setMetaCrawlerContainer(MetaCrawlerContainer metaCrawlerContainer) {
this.metaCrawlerContainer = metaCrawlerContainer;
}
public Date getCreateDate() {
return createDate;
}

View File

@ -48,6 +48,9 @@ public class Sensor {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
private Date createDate;
@Column(name = "INTERVAL", nullable = false)
private Integer interval;
@Transient
private List<MetaDisplayItem> sensorItems;