Create setters for GrantDto

This commit is contained in:
T-Midnight 2018-12-22 03:31:43 +04:00
parent 469a3ad07d
commit 42d33d1be8

View File

@ -11,14 +11,14 @@ import java.util.List;
import static ru.ulstu.core.util.StreamApiUtils.convert; import static ru.ulstu.core.util.StreamApiUtils.convert;
public class GrantDto { public class GrantDto {
private final Integer id; private Integer id;
@NotEmpty @NotEmpty
private final String title; private String title;
private final Grant.GrantStatus status; private Grant.GrantStatus status;
private final List<DeadlineDto> deadlines; private List<DeadlineDto> deadlines;
private final String comment; private String comment;
private final String applicationFileName; private String applicationFileName;
private final ProjectDto project; private ProjectDto project;
@JsonCreator @JsonCreator
public GrantDto(@JsonProperty("id") Integer id, public GrantDto(@JsonProperty("id") Integer id,
@ -50,27 +50,46 @@ public class GrantDto {
return id; return id;
} }
public void setId(Integer id) {this.id = id;}
public String getTitle() { public String getTitle() {
return title; return title;
} }
public void setTitle(String title) {this.title = title;}
public Grant.GrantStatus getStatus() { public Grant.GrantStatus getStatus() {
return status; return status;
} }
public void setStatus(Grant.GrantStatus status) {
this.status = status;
}
public List<DeadlineDto> getDeadlines() { public List<DeadlineDto> getDeadlines() {
return deadlines; return deadlines;
} }
public void setDeadlines(List<DeadlineDto> deadlines) {
this.deadlines = deadlines;
}
public String getComment() { public String getComment() {
return comment; return comment;
} }
public void setComment(String comment) {this.comment = comment;}
public ProjectDto getProject() { public ProjectDto getProject() {
return project; return project;
} }
public void setProject(ProjectDto project) {this.project = project;}
public String getApplicationFileName() { public String getApplicationFileName() {
return applicationFileName; return applicationFileName;
} }
public void setApplicationFileName(String applicationFileName) {
this.applicationFileName = applicationFileName;}
} }