Add constructor

This commit is contained in:
T-Midnight 2018-12-23 02:22:24 +04:00
parent edd38beb67
commit 9e5f3d7247

View File

@ -20,6 +20,10 @@ public class GrantDto {
private String applicationFileName; private String applicationFileName;
private ProjectDto project; private ProjectDto project;
public GrantDto() {
deadlines.add(new DeadlineDto());
}
@JsonCreator @JsonCreator
public GrantDto(@JsonProperty("id") Integer id, public GrantDto(@JsonProperty("id") Integer id,
@JsonProperty("title") String title, @JsonProperty("title") String title,