| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- //package nju.seec.helper.entity;
- //
- //
- //import lombok.Data;
- //import nju.seec.helper.entity.converter.MapConverter;
- //import org.hibernate.annotations.CreationTimestamp;
- //import org.hibernate.annotations.DynamicInsert;
- //import org.hibernate.annotations.DynamicUpdate;
- //import org.hibernate.annotations.UpdateTimestamp;
- //
- //import javax.persistence.*;
- //import java.math.BigDecimal;
- //import java.time.LocalDateTime;
- //import java.util.Map;
- //
- ///**
- // * @author sxt
- // * <p>
- // * updated by cst
- // */
- //@Data
- //@Entity
- //@Table(name = "quiz_student_answer",
- // indexes = {@Index(columnList = "quiz"),
- // @Index(columnList = "student ,quiz")})
- //@DynamicUpdate
- //@DynamicInsert
- //public class QuizStudentAnswer {
- // @Id
- // @GeneratedValue(strategy = GenerationType.IDENTITY)
- // @Column(name = "id")
- // private Long id;
- //
- // @ManyToOne(cascade = {CascadeType.DETACH, CascadeType.MERGE, CascadeType.REFRESH}, fetch = FetchType.LAZY)
- // @JoinColumn(name = "quiz_id", referencedColumnName = "id")
- // private Quiz quiz;
- //
- // @ManyToOne(cascade = {CascadeType.DETACH, CascadeType.MERGE, CascadeType.REFRESH}, fetch = FetchType.LAZY)
- // @JoinColumn(name = "student_id", referencedColumnName = "id")
- // private User student;
- //
- // @SuppressWarnings("all")
- // @Convert(converter = MapConverter.class)
- // @Column(nullable = false)
- // private Map<String, String> answers;
- //
- // @Column(name = "create_at", nullable = false, updatable = false)
- // @CreationTimestamp
- // private LocalDateTime createAt;
- //
- // @Column(name = "modified_at", nullable = false)
- // @UpdateTimestamp
- // private LocalDateTime modifiedAt;
- //
- // @Column(name = "submit_number", nullable = false, columnDefinition = "int default 1 not null")
- // private Integer submitNumber;
- //
- // @Column(nullable = false)
- // private BigDecimal score;
- //}
|