ReviewPaper.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. package edu.nju.entities;
  2. import edu.nju.vo.ReviewPaperVO;
  3. import org.springframework.data.annotation.Id;
  4. import org.springframework.data.annotation.PersistenceConstructor;
  5. import org.springframework.data.mongodb.core.mapping.Document;
  6. @Document
  7. public class ReviewPaper implements java.io.Serializable{
  8. private static final long serialVersionUID = 3417624501014997684L;
  9. @Id
  10. private String id;
  11. private String description;
  12. private String name;
  13. private String create_time;
  14. private String type;
  15. private String application_location;
  16. private String requirement_location;
  17. @PersistenceConstructor
  18. public ReviewPaper(String description, String name, String create_time, String type, String application_location,String requirement_location) {
  19. this.description = description;
  20. this.name = name;
  21. this.create_time = create_time;
  22. this.type = type;
  23. this.application_location = application_location;
  24. this.requirement_location = requirement_location;
  25. }
  26. @PersistenceConstructor
  27. public ReviewPaper(ReviewPaperVO reviewPaperVO) {
  28. this.description = reviewPaperVO.getDescription();
  29. this.name = reviewPaperVO.getName();
  30. this.create_time = reviewPaperVO.getCreate_time();
  31. this.type = reviewPaperVO.getType();
  32. this.application_location = reviewPaperVO.getApplication_location();
  33. this.requirement_location = reviewPaperVO.getRequirement_location();
  34. }
  35. public String getId() {
  36. return id;
  37. }
  38. public void setId(String id) {
  39. this.id = id;
  40. }
  41. public String getDescription() {
  42. return description;
  43. }
  44. public void setDescription(String description) {
  45. this.description = description;
  46. }
  47. public String getName() {
  48. return name;
  49. }
  50. public void setName(String name) {
  51. this.name = name;
  52. }
  53. public String getCreate_time() {
  54. return create_time;
  55. }
  56. public void setCreate_time(String create_time) {
  57. this.create_time = create_time;
  58. }
  59. public String getType() {
  60. return type;
  61. }
  62. public void setType(String type) {
  63. this.type = type;
  64. }
  65. public String getApplication_location() {
  66. return application_location;
  67. }
  68. public void setApplication_location(String application_location) {
  69. this.application_location = application_location;
  70. }
  71. public String getRequirement_location() {
  72. return requirement_location;
  73. }
  74. public void setRequirement_location(String requirement_location) {
  75. this.requirement_location = requirement_location;
  76. }
  77. public void setReviewPaper(ReviewPaperVO reviewPaperVO){
  78. this.description = reviewPaperVO.getDescription();
  79. this.name = reviewPaperVO.getName();
  80. this.create_time = reviewPaperVO.getCreate_time();
  81. this.type = reviewPaperVO.getType();
  82. this.application_location = reviewPaperVO.getApplication_location();
  83. this.requirement_location = reviewPaperVO.getRequirement_location();
  84. }
  85. }