Update ProjectDto
This commit is contained in:
parent
9e5f3d7247
commit
c2a32d6c27
@ -10,12 +10,12 @@ import java.util.List;
|
||||
import static ru.ulstu.core.util.StreamApiUtils.convert;
|
||||
|
||||
public class ProjectDto {
|
||||
private final Integer id;
|
||||
|
||||
private Integer id;
|
||||
@NotEmpty
|
||||
private final String title;
|
||||
private String title;
|
||||
private List<DeadlineDto> deadlines;
|
||||
|
||||
private final List<DeadlineDto> deadlines;
|
||||
public ProjectDto() {}
|
||||
|
||||
@JsonCreator
|
||||
public ProjectDto(@JsonProperty("id") Integer id,
|
||||
@ -26,6 +26,7 @@ public class ProjectDto {
|
||||
this.deadlines = deadlines;
|
||||
}
|
||||
|
||||
|
||||
public ProjectDto(Project project) {
|
||||
this.id = project.getId();
|
||||
this.title = project.getTitle();
|
||||
@ -39,4 +40,19 @@ public class ProjectDto {
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public void setDeadlines(List<DeadlineDto> deadlines) {
|
||||
this.deadlines = deadlines;
|
||||
}
|
||||
public List<DeadlineDto> getDeadlines() {
|
||||
return deadlines;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user