From 42d33d1be8f2a6f203b2cf4d7b46831bfc404ae4 Mon Sep 17 00:00:00 2001 From: T-Midnight Date: Sat, 22 Dec 2018 03:31:43 +0400 Subject: [PATCH] Create setters for GrantDto --- .../java/ru/ulstu/grant/model/GrantDto.java | 33 +++++++++++++++---- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/src/main/java/ru/ulstu/grant/model/GrantDto.java b/src/main/java/ru/ulstu/grant/model/GrantDto.java index 922df89..a96244d 100644 --- a/src/main/java/ru/ulstu/grant/model/GrantDto.java +++ b/src/main/java/ru/ulstu/grant/model/GrantDto.java @@ -11,14 +11,14 @@ import java.util.List; import static ru.ulstu.core.util.StreamApiUtils.convert; public class GrantDto { - private final Integer id; + private Integer id; @NotEmpty - private final String title; - private final Grant.GrantStatus status; - private final List deadlines; - private final String comment; - private final String applicationFileName; - private final ProjectDto project; + private String title; + private Grant.GrantStatus status; + private List deadlines; + private String comment; + private String applicationFileName; + private ProjectDto project; @JsonCreator public GrantDto(@JsonProperty("id") Integer id, @@ -50,27 +50,46 @@ public class GrantDto { return id; } + public void setId(Integer id) {this.id = id;} + public String getTitle() { return title; } + public void setTitle(String title) {this.title = title;} + public Grant.GrantStatus getStatus() { return status; } + public void setStatus(Grant.GrantStatus status) { + this.status = status; + } + public List getDeadlines() { return deadlines; } + public void setDeadlines(List deadlines) { + this.deadlines = deadlines; + } + public String getComment() { return comment; } + public void setComment(String comment) {this.comment = comment;} + public ProjectDto getProject() { return project; } + public void setProject(ProjectDto project) {this.project = project;} + public String getApplicationFileName() { return applicationFileName; } + + public void setApplicationFileName(String applicationFileName) { + this.applicationFileName = applicationFileName;} }