From 9e5f3d72476814782e43d3f5e3f281a2092ca62b Mon Sep 17 00:00:00 2001 From: T-Midnight Date: Sun, 23 Dec 2018 02:22:24 +0400 Subject: [PATCH] Add constructor --- src/main/java/ru/ulstu/grant/model/GrantDto.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ru/ulstu/grant/model/GrantDto.java b/src/main/java/ru/ulstu/grant/model/GrantDto.java index a96244d..aeff302 100644 --- a/src/main/java/ru/ulstu/grant/model/GrantDto.java +++ b/src/main/java/ru/ulstu/grant/model/GrantDto.java @@ -20,6 +20,10 @@ public class GrantDto { private String applicationFileName; private ProjectDto project; + public GrantDto() { + deadlines.add(new DeadlineDto()); + } + @JsonCreator public GrantDto(@JsonProperty("id") Integer id, @JsonProperty("title") String title,