Adds uri property to ProjectOverview model.
This commit is contained in:
parent
7de3e34a6d
commit
d15cbd6d9e
|
@ -13,6 +13,7 @@ public class ProjectOverviewModel implements DataModel<Project, ProjectOverviewM
|
|||
private String description;
|
||||
private Date startDate;
|
||||
private Date endDate;
|
||||
private String uri;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
|
@ -56,6 +57,13 @@ public class ProjectOverviewModel implements DataModel<Project, ProjectOverviewM
|
|||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
public String getUri() {
|
||||
return uri;
|
||||
}
|
||||
public void setUri(String uri) {
|
||||
this.uri = uri;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProjectOverviewModel fromDataModel(Project entity) {
|
||||
this.id = entity.getId();
|
||||
|
@ -64,6 +72,7 @@ public class ProjectOverviewModel implements DataModel<Project, ProjectOverviewM
|
|||
this.description = entity.getDescription();
|
||||
this.startDate = entity.getStartdate();
|
||||
this.endDate = entity.getEnddate();
|
||||
this.uri = entity.getUri();
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue