80 lines
1.8 KiB
Java
80 lines
1.8 KiB
Java
package eu.eudat.models.data.project;
|
|
|
|
import eu.eudat.data.entities.Project;
|
|
import eu.eudat.models.DataModel;
|
|
|
|
import java.util.Date;
|
|
import java.util.UUID;
|
|
|
|
public class ProjectOverviewModel implements DataModel<Project, ProjectOverviewModel> {
|
|
private UUID id;
|
|
private String label;
|
|
private String abbreviation;
|
|
private String definition;
|
|
private Date startDate;
|
|
private Date endDate;
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public String getAbbreviation() {
|
|
return abbreviation;
|
|
}
|
|
public void setAbbreviation(String abbreviation) {
|
|
this.abbreviation = abbreviation;
|
|
}
|
|
|
|
public String getDefinition() {
|
|
return definition;
|
|
}
|
|
public void setDefinition(String definition) {
|
|
this.definition = definition;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public ProjectOverviewModel fromDataModel(Project entity) {
|
|
this.id = entity.getId();
|
|
this.label = entity.getLabel();
|
|
this.abbreviation = entity.getAbbreviation();
|
|
this.definition = entity.getDefinition();
|
|
this.startDate = entity.getStartdate();
|
|
this.endDate = entity.getEnddate();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public Project toDataModel() throws Exception {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public String getHint() {
|
|
return null;
|
|
}
|
|
}
|