diff --git a/javav2/usecases/CreatingSpringRedshiftRest/Readme.md b/javav2/usecases/CreatingSpringRedshiftRest/Readme.md index e7d7ada7bde..5b56c653f3e 100644 --- a/javav2/usecases/CreatingSpringRedshiftRest/Readme.md +++ b/javav2/usecases/CreatingSpringRedshiftRest/Readme.md @@ -668,11 +668,17 @@ public class WorkItem { private String date; private String description; private String status; + private boolean archived ; public static WorkItem from(List fields) { var item = new WorkItem(); - for (int i = 0; i <= 5; i++) { - String value = fields.get(i).stringValue(); + for (int i = 0; i <= 6; i++) { + String value=""; + boolean val = false; + value = fields.get(i).stringValue(); + if (i == 6) + val = fields.get(i).booleanValue(); + switch (i) { case 0: item.setId(value); @@ -692,11 +698,22 @@ public class WorkItem { case 5: item.setName(value); break; + case 6: + item.setArchived(val); + break; } } return item; } + public boolean getArchived() { + return this.archived; + } + + public void setArchived(boolean archived) { + this.archived = archived; + } + public void setId(String id) { this.id = id; }