QuizStudentAnswer.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //package nju.seec.helper.entity;
  2. //
  3. //
  4. //import lombok.Data;
  5. //import nju.seec.helper.entity.converter.MapConverter;
  6. //import org.hibernate.annotations.CreationTimestamp;
  7. //import org.hibernate.annotations.DynamicInsert;
  8. //import org.hibernate.annotations.DynamicUpdate;
  9. //import org.hibernate.annotations.UpdateTimestamp;
  10. //
  11. //import javax.persistence.*;
  12. //import java.math.BigDecimal;
  13. //import java.time.LocalDateTime;
  14. //import java.util.Map;
  15. //
  16. ///**
  17. // * @author sxt
  18. // * <p>
  19. // * updated by cst
  20. // */
  21. //@Data
  22. //@Entity
  23. //@Table(name = "quiz_student_answer",
  24. // indexes = {@Index(columnList = "quiz"),
  25. // @Index(columnList = "student ,quiz")})
  26. //@DynamicUpdate
  27. //@DynamicInsert
  28. //public class QuizStudentAnswer {
  29. // @Id
  30. // @GeneratedValue(strategy = GenerationType.IDENTITY)
  31. // @Column(name = "id")
  32. // private Long id;
  33. //
  34. // @ManyToOne(cascade = {CascadeType.DETACH, CascadeType.MERGE, CascadeType.REFRESH}, fetch = FetchType.LAZY)
  35. // @JoinColumn(name = "quiz_id", referencedColumnName = "id")
  36. // private Quiz quiz;
  37. //
  38. // @ManyToOne(cascade = {CascadeType.DETACH, CascadeType.MERGE, CascadeType.REFRESH}, fetch = FetchType.LAZY)
  39. // @JoinColumn(name = "student_id", referencedColumnName = "id")
  40. // private User student;
  41. //
  42. // @SuppressWarnings("all")
  43. // @Convert(converter = MapConverter.class)
  44. // @Column(nullable = false)
  45. // private Map<String, String> answers;
  46. //
  47. // @Column(name = "create_at", nullable = false, updatable = false)
  48. // @CreationTimestamp
  49. // private LocalDateTime createAt;
  50. //
  51. // @Column(name = "modified_at", nullable = false)
  52. // @UpdateTimestamp
  53. // private LocalDateTime modifiedAt;
  54. //
  55. // @Column(name = "submit_number", nullable = false, columnDefinition = "int default 1 not null")
  56. // private Integer submitNumber;
  57. //
  58. // @Column(nullable = false)
  59. // private BigDecimal score;
  60. //}