some model
This commit is contained in:
parent
1acd7d83ea
commit
28ae97cfdf
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user