|
@@ -0,0 +1,106 @@
|
|
|
+package edu.nju.entities;
|
|
|
+
|
|
|
+import org.springframework.data.annotation.Id;
|
|
|
+import org.springframework.data.annotation.PersistenceConstructor;
|
|
|
+import org.springframework.data.mongodb.core.mapping.Document;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Document
|
|
|
+public class ReviewItem implements java.io.Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = -5938513083545319123L;
|
|
|
+
|
|
|
+ @Id
|
|
|
+ private String id;
|
|
|
+
|
|
|
+ private String job_id;
|
|
|
+
|
|
|
+ private List<String> isRequired;
|
|
|
+
|
|
|
+ private List<String> isMultiple;
|
|
|
+
|
|
|
+ private List<String> options;
|
|
|
+
|
|
|
+ private List<String> description;
|
|
|
+
|
|
|
+ private List<String>attachment_location;
|
|
|
+
|
|
|
+ private List<String>report_id;
|
|
|
+
|
|
|
+
|
|
|
+ @PersistenceConstructor
|
|
|
+ public ReviewItem(String job_id, List<String> isRequired, List<String> isMultiple, List<String> options, List<String> description,List<String>attachment_location,List<String>report_id) {
|
|
|
+ this.job_id = job_id;
|
|
|
+ this.isRequired = isRequired;
|
|
|
+ this.isMultiple = isMultiple;
|
|
|
+ this.options = options;
|
|
|
+ this.description = description;
|
|
|
+ this.attachment_location=attachment_location;
|
|
|
+ this.report_id=report_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getJob_id() {
|
|
|
+ return job_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setJob_id(String job_id) {
|
|
|
+ this.job_id = job_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getIsRequired() {
|
|
|
+ return isRequired;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIsRequired(List<String> isRequired) {
|
|
|
+ this.isRequired = isRequired;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getIsMultiple() {
|
|
|
+ return isMultiple;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIsMultiple(List<String> isMultiple) {
|
|
|
+ this.isMultiple = isMultiple;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getOptions() {
|
|
|
+ return options;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOptions(List<String> options) {
|
|
|
+ this.options = options;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getDescription() {
|
|
|
+ return description;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDescription(List<String> description) {
|
|
|
+ this.description = description;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getAttachment_location() {
|
|
|
+ return attachment_location;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttachment_location(List<String> attachment_location) {
|
|
|
+ this.attachment_location = attachment_location;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getReport_id() {
|
|
|
+ return report_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReport_id(List<String> report_id) {
|
|
|
+ this.report_id = report_id;
|
|
|
+ }
|
|
|
+}
|