Create setters for GrantDto
This commit is contained in:
parent
469a3ad07d
commit
42d33d1be8
@ -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<DeadlineDto> deadlines;
|
||||
private final String comment;
|
||||
private final String applicationFileName;
|
||||
private final ProjectDto project;
|
||||
private String title;
|
||||
private Grant.GrantStatus status;
|
||||
private List<DeadlineDto> 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<DeadlineDto> getDeadlines() {
|
||||
return deadlines;
|
||||
}
|
||||
|
||||
public void setDeadlines(List<DeadlineDto> 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;}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user