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>
|
<groupId>com.loafle.overflow</groupId>
|
||||||
<artifactId>commons-java</artifactId>
|
<artifactId>commons-java</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0.110-SNAPSHOT</version>
|
<version>1.0.111-SNAPSHOT</version>
|
||||||
<name>com.loafle.overflow.commons-java</name>
|
<name>com.loafle.overflow.commons-java</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -13,10 +13,6 @@ public class MetaCrawler {
|
||||||
@Id
|
@Id
|
||||||
private Short id;
|
private Short id;
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "META_CRAWLER_CONTAINER_ID", nullable = false)
|
|
||||||
private MetaCrawlerContainer metaCrawlerContainer;
|
|
||||||
|
|
||||||
@Column(name = "KEY", nullable = true, length = 50)
|
@Column(name = "KEY", nullable = true, length = 50)
|
||||||
private String key;
|
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)
|
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
|
||||||
private Date createDate;
|
private Date createDate;
|
||||||
|
|
||||||
|
|
||||||
public Short getId() {
|
public Short getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
@ -40,14 +35,6 @@ public class MetaCrawler {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MetaCrawlerContainer getMetaCrawlerContainer() {
|
|
||||||
return metaCrawlerContainer;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMetaCrawlerContainer(MetaCrawlerContainer metaCrawlerContainer) {
|
|
||||||
this.metaCrawlerContainer = metaCrawlerContainer;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getKey() {
|
public String getKey() {
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,10 @@ public class MetaCrawlerMapping {
|
||||||
@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)
|
||||||
private Date createDate;
|
private Date createDate;
|
||||||
|
|
||||||
|
@ManyToOne
|
||||||
|
@JoinColumn(name = "META_CRAWLER_CONTAINER_ID", nullable = false)
|
||||||
|
private MetaCrawlerContainer metaCrawlerContainer;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +77,14 @@ public class MetaCrawlerMapping {
|
||||||
isDefault = aDefault;
|
isDefault = aDefault;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MetaCrawlerContainer getMetaCrawlerContainer() {
|
||||||
|
return metaCrawlerContainer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMetaCrawlerContainer(MetaCrawlerContainer metaCrawlerContainer) {
|
||||||
|
this.metaCrawlerContainer = metaCrawlerContainer;
|
||||||
|
}
|
||||||
|
|
||||||
public Date getCreateDate() {
|
public Date getCreateDate() {
|
||||||
return createDate;
|
return createDate;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,9 @@ public class Sensor {
|
||||||
@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)
|
||||||
private Date createDate;
|
private Date createDate;
|
||||||
|
|
||||||
|
@Column(name = "INTERVAL", nullable = false)
|
||||||
|
private Integer interval;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
private List<MetaDisplayItem> sensorItems;
|
private List<MetaDisplayItem> sensorItems;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user