Added the create/edit timestamps, status codes, etc

This commit is contained in:
Nikolaos Laskaris 2017-11-02 18:17:56 +02:00
parent c1ca2af9f9
commit b59e8cc730
10 changed files with 438 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -100,6 +101,47 @@ public class DMP implements Serializable {
private Set<UserInfo> users; private Set<UserInfo> users;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public Set<UserInfo> getUsers() { public Set<UserInfo> getUsers() {
return users; return users;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -52,6 +53,47 @@ public class DMPProfile implements Serializable {
@Column(name = "\"Definition\"", columnDefinition = "xml", nullable = true) @Column(name = "\"Definition\"", columnDefinition = "xml", nullable = true)
private String definition; private String definition;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public UUID getId() { public UUID getId() {
return id; return id;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -68,6 +69,45 @@ public class DataRepository implements Serializable {
private Set<Dataset> datasets; private Set<Dataset> datasets;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public UUID getId() { public UUID getId() {

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -95,7 +96,46 @@ public class Dataset implements Serializable {
private Set<Service> services; private Set<Service> services;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public Set<Registry> getRegistries() { public Set<Registry> getRegistries() {
return registries; return registries;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -62,6 +63,48 @@ public class DatasetProfile implements Serializable {
@Column(name = "\"Definition\"", columnDefinition = "xml", nullable = false) @Column(name = "\"Definition\"", columnDefinition = "xml", nullable = false)
private String definition; private String definition;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public UUID getId() { public UUID getId() {
return id; return id;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -69,6 +70,47 @@ public class Organisation implements Serializable {
private Set<DMP> dMPs; private Set<DMP> dMPs;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public UUID getId() { public UUID getId() {
return id; return id;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -69,6 +70,73 @@ public class Project implements Serializable {
private String definition; private String definition;
@Column(name = "\"StartDate\"", nullable = false)
private Date startdate = null;
@Column(name = "\"EndDate\"", nullable = false)
private Date enddate = null;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public Date getStartdate() {
return startdate;
}
public void setStartdate(Date startdate) {
this.startdate = startdate;
}
public Date getEnddate() {
return enddate;
}
public void setEnddate(Date enddate) {
this.enddate = enddate;
}
public UUID getId() { public UUID getId() {
return id; return id;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -69,6 +70,45 @@ public class Registry implements Serializable {
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public UUID getId() { public UUID getId() {
return id; return id;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -69,6 +70,46 @@ public class Researcher implements Serializable {
private Set<DMP> dMPs; private Set<DMP> dMPs;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public UUID getId() { public UUID getId() {
return id; return id;
} }

View File

@ -2,6 +2,7 @@ package entities;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -69,6 +70,45 @@ public class Service implements Serializable {
private Set<Dataset> datasets; private Set<Dataset> datasets;
@Column(name = "\"Status\"", nullable = false)
private Short status;
@Column(name = "\"Created\"", nullable = false)
private Date created = null;
@Column(name = "\"Modified\"", nullable = false)
private Date modified = null;
public Short getStatus() {
return status;
}
public void setStatus(Short status) {
this.status = status;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public UUID getId() { public UUID getId() {
return id; return id;