|
@@ -4,6 +4,7 @@ import org.springframework.data.annotation.Id;
|
|
|
import org.springframework.data.annotation.PersistenceConstructor;
|
|
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Set;
|
|
|
|
|
|
@Document
|
|
@@ -21,25 +22,25 @@ public class Item implements java.io.Serializable {
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
- private Set<String> img_urls;
|
|
|
+ private List<String> img_urls;
|
|
|
|
|
|
private boolean isRequired;
|
|
|
|
|
|
private boolean isMultiple;
|
|
|
|
|
|
- private String attachment_location;
|
|
|
+ private List<String> attachment_locations;
|
|
|
|
|
|
- private String[] answers;
|
|
|
+ private String[] options;
|
|
|
|
|
|
@PersistenceConstructor
|
|
|
- public Item(String id, String description, Set<String> img_urls, boolean isRequired, boolean isMultiple, String attachment_location,String[] answers,String job_id) {
|
|
|
+ public Item(String id, String description, List<String> img_urls, boolean isRequired, boolean isMultiple, List<String> attachment_locations, String[] options, String job_id) {
|
|
|
this.id = id;
|
|
|
this.description = description;
|
|
|
this.img_urls = img_urls;
|
|
|
this.isRequired = isRequired;
|
|
|
this.isMultiple = isMultiple;
|
|
|
- this.attachment_location = attachment_location;
|
|
|
- this.answers = answers;
|
|
|
+ this.attachment_locations = attachment_locations;
|
|
|
+ this.options = options;
|
|
|
this.job_id = job_id;
|
|
|
}
|
|
|
|
|
@@ -59,11 +60,11 @@ public class Item implements java.io.Serializable {
|
|
|
this.description = description;
|
|
|
}
|
|
|
|
|
|
- public Set<String> getImg_urls() {
|
|
|
+ public List<String> getImg_urls() {
|
|
|
return img_urls;
|
|
|
}
|
|
|
|
|
|
- public void setImg_urls(Set<String> img_urls) {
|
|
|
+ public void setImg_urls(List<String> img_urls) {
|
|
|
this.img_urls = img_urls;
|
|
|
}
|
|
|
|
|
@@ -83,20 +84,20 @@ public class Item implements java.io.Serializable {
|
|
|
isMultiple = multiple;
|
|
|
}
|
|
|
|
|
|
- public String getAttachment_location() {
|
|
|
- return attachment_location;
|
|
|
+ public List<String> getAttachment_locations() {
|
|
|
+ return attachment_locations;
|
|
|
}
|
|
|
|
|
|
- public void setAttachment_location(String attachment_location) {
|
|
|
- this.attachment_location = attachment_location;
|
|
|
+ public void setAttachment_locations(List<String> attachment_locations) {
|
|
|
+ this.attachment_locations = attachment_locations;
|
|
|
}
|
|
|
|
|
|
- public String[] getAnswers() {
|
|
|
- return answers;
|
|
|
+ public String[] getOptions() {
|
|
|
+ return options;
|
|
|
}
|
|
|
|
|
|
- public void setAnswers(String[] answers) {
|
|
|
- this.answers = answers;
|
|
|
+ public void setOptions(String[] options) {
|
|
|
+ this.options = options;
|
|
|
}
|
|
|
|
|
|
public String getJob_id() {
|