Adds uri property to ProjectOverview model.

This commit is contained in:
gkolokythas 2019-05-21 13:36:55 +03:00
parent 7de3e34a6d
commit d15cbd6d9e
1 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,7 @@ public class ProjectOverviewModel implements DataModel<Project, ProjectOverviewM
private String description; private String description;
private Date startDate; private Date startDate;
private Date endDate; private Date endDate;
private String uri;
public UUID getId() { public UUID getId() {
return id; return id;
@ -56,6 +57,13 @@ public class ProjectOverviewModel implements DataModel<Project, ProjectOverviewM
this.endDate = endDate; this.endDate = endDate;
} }
public String getUri() {
return uri;
}
public void setUri(String uri) {
this.uri = uri;
}
@Override @Override
public ProjectOverviewModel fromDataModel(Project entity) { public ProjectOverviewModel fromDataModel(Project entity) {
this.id = entity.getId(); this.id = entity.getId();
@ -64,6 +72,7 @@ public class ProjectOverviewModel implements DataModel<Project, ProjectOverviewM
this.description = entity.getDescription(); this.description = entity.getDescription();
this.startDate = entity.getStartdate(); this.startDate = entity.getStartdate();
this.endDate = entity.getEnddate(); this.endDate = entity.getEnddate();
this.uri = entity.getUri();
return this; return this;
} }