|
@@ -1,86 +1,97 @@
|
|
|
package cn.com.qmth.examcloud.core.examwork.dao.entity;
|
|
|
|
|
|
-import javax.persistence.Column;
|
|
|
-import javax.persistence.Entity;
|
|
|
-import javax.persistence.Id;
|
|
|
-import javax.persistence.IdClass;
|
|
|
-import javax.persistence.Index;
|
|
|
-import javax.persistence.Table;
|
|
|
-
|
|
|
import cn.com.qmth.examcloud.web.jpa.JpaEntity;
|
|
|
|
|
|
+import javax.persistence.*;
|
|
|
+
|
|
|
@Entity
|
|
|
-@Table(name = "EC_E_EXAM_COURSE_RELATION", indexes = {
|
|
|
- @Index(name = "IDX_E_E_C_R_008001", columnList = "courseId", unique = false)})
|
|
|
+@Table(name = "ec_e_exam_course_relation", indexes = {
|
|
|
+ @Index(name = "IDX_E_E_C_R_008001", columnList = "courseId"),
|
|
|
+ @Index(name = "IDX_E_E_C_R_008002", columnList = "examId,courseCode", unique = true)
|
|
|
+})
|
|
|
@IdClass(ExamCourseRelationPK.class)
|
|
|
public class ExamCourseRelationEntity extends JpaEntity {
|
|
|
|
|
|
- private static final long serialVersionUID = 757531976286006550L;
|
|
|
+ private static final long serialVersionUID = 757531976286006550L;
|
|
|
+
|
|
|
+ @Id
|
|
|
+ private Long examId;
|
|
|
+
|
|
|
+ @Id
|
|
|
+ private Long courseId;
|
|
|
+
|
|
|
+ @Column(nullable = false)
|
|
|
+ private String courseName;
|
|
|
|
|
|
- @Id
|
|
|
- private Long examId;
|
|
|
+ @Column(nullable = false)
|
|
|
+ private String courseCode;
|
|
|
|
|
|
- @Id
|
|
|
- private Long courseId;
|
|
|
+ @Column(nullable = false)
|
|
|
+ private String courseLevel;
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private String courseName;
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Boolean courseEnable;
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private String courseCode;
|
|
|
+ /**
|
|
|
+ * 是否开放微信小程序作答
|
|
|
+ */
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Boolean weixinAnswerEnabled;
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private String courseLevel;
|
|
|
+ public Long getExamId() {
|
|
|
+ return examId;
|
|
|
+ }
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private Boolean courseEnable;
|
|
|
+ public void setExamId(Long examId) {
|
|
|
+ this.examId = examId;
|
|
|
+ }
|
|
|
|
|
|
- public Long getExamId() {
|
|
|
- return examId;
|
|
|
- }
|
|
|
+ public Long getCourseId() {
|
|
|
+ return courseId;
|
|
|
+ }
|
|
|
|
|
|
- public void setExamId(Long examId) {
|
|
|
- this.examId = examId;
|
|
|
- }
|
|
|
+ public void setCourseId(Long courseId) {
|
|
|
+ this.courseId = courseId;
|
|
|
+ }
|
|
|
|
|
|
- public Long getCourseId() {
|
|
|
- return courseId;
|
|
|
- }
|
|
|
+ public String getCourseName() {
|
|
|
+ return courseName;
|
|
|
+ }
|
|
|
|
|
|
- public void setCourseId(Long courseId) {
|
|
|
- this.courseId = courseId;
|
|
|
- }
|
|
|
+ public void setCourseName(String courseName) {
|
|
|
+ this.courseName = courseName;
|
|
|
+ }
|
|
|
|
|
|
- public String getCourseName() {
|
|
|
- return courseName;
|
|
|
- }
|
|
|
+ public String getCourseCode() {
|
|
|
+ return courseCode;
|
|
|
+ }
|
|
|
|
|
|
- public void setCourseName(String courseName) {
|
|
|
- this.courseName = courseName;
|
|
|
- }
|
|
|
+ public void setCourseCode(String courseCode) {
|
|
|
+ this.courseCode = courseCode;
|
|
|
+ }
|
|
|
|
|
|
- public String getCourseCode() {
|
|
|
- return courseCode;
|
|
|
- }
|
|
|
+ public String getCourseLevel() {
|
|
|
+ return courseLevel;
|
|
|
+ }
|
|
|
|
|
|
- public void setCourseCode(String courseCode) {
|
|
|
- this.courseCode = courseCode;
|
|
|
- }
|
|
|
+ public void setCourseLevel(String courseLevel) {
|
|
|
+ this.courseLevel = courseLevel;
|
|
|
+ }
|
|
|
|
|
|
- public String getCourseLevel() {
|
|
|
- return courseLevel;
|
|
|
- }
|
|
|
+ public Boolean getCourseEnable() {
|
|
|
+ return courseEnable;
|
|
|
+ }
|
|
|
|
|
|
- public void setCourseLevel(String courseLevel) {
|
|
|
- this.courseLevel = courseLevel;
|
|
|
- }
|
|
|
+ public void setCourseEnable(Boolean courseEnable) {
|
|
|
+ this.courseEnable = courseEnable;
|
|
|
+ }
|
|
|
|
|
|
- public Boolean getCourseEnable() {
|
|
|
- return courseEnable;
|
|
|
- }
|
|
|
+ public Boolean getWeixinAnswerEnabled() {
|
|
|
+ return weixinAnswerEnabled;
|
|
|
+ }
|
|
|
|
|
|
- public void setCourseEnable(Boolean courseEnable) {
|
|
|
- this.courseEnable = courseEnable;
|
|
|
- }
|
|
|
+ public void setWeixinAnswerEnabled(Boolean weixinAnswerEnabled) {
|
|
|
+ this.weixinAnswerEnabled = weixinAnswerEnabled;
|
|
|
+ }
|
|
|
|
|
|
}
|