|
@@ -1,6 +1,7 @@
|
|
|
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.ArrayList;
|
|
@@ -30,6 +31,7 @@ public class ReviewGroup implements java.io.Serializable{
|
|
|
private List<String>original_id;
|
|
|
|
|
|
|
|
|
+ @PersistenceConstructor
|
|
|
public ReviewGroup(String name, String description, List<String> workers_id, String job_id, List<String> report_id,List<String>paper_original_id,List<String>original_id) {
|
|
|
this.name = name;
|
|
|
this.description = description;
|
|
@@ -50,6 +52,7 @@ public class ReviewGroup implements java.io.Serializable{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @PersistenceConstructor
|
|
|
public ReviewGroup(String id,String name, String description, List<String> workers_id, String job_id, List<String> report_id,List<String>paper_original_id,List<String>original_id) {
|
|
|
this.id=id;
|
|
|
this.name = name;
|