package com.qxueyou.scc.teach.subject.model.view; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonView; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.transaction.annotation.Transactional; import javax.persistence.*; import java.math.BigDecimal; import java.util.Date; @Entity(name = "MyOpenLectureV") @Table(name = "my_open_lecture_v") public class MyOpenLectureV implements java.io.Serializable { private static final long serialVersionUID = -332455459706490649L; private String userId; private String lectureId; private String chapterId; private String lectureType; private String lectureName; private String userName; private String subjectName; private Date lectureUpdateTime; private BigDecimal progressValue; private Double percent; private String subjectId; private Date lectureCreateTime; @Id @Column(name = "USER_ID") public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } @Id @Column(name = "LECTURE_ID") public String getLectureId() { return lectureId; } public void setLectureId(String lectureId) { this.lectureId = lectureId; } public MyOpenLectureV() { } @Column(name = "SUBJECT_NAME") public String getSubjectName() { return subjectName; } public void setSubjectName(String subjectName) { this.subjectName = subjectName; } @Column(name = "PROGRESS_VALUE") public BigDecimal getProgressValue() { return this.progressValue; } public void setProgressValue(BigDecimal progressValue) { this.progressValue = progressValue; } @Column(name = "CHAPTER_ID") public String getChapterId() { return chapterId; } public void setChapterId(String chapterId) { this.chapterId = chapterId; } @Column(name = "LECTURE_TYPE") public String getLectureType() { return lectureType; } public void setLectureType(String lectureType) { this.lectureType = lectureType; } @Column(name = "LECTURE_NAME") public String getLectureName() { return lectureName; } public void setLectureName(String lectureName) { this.lectureName = lectureName; } @Column(name = "USER_NAME") public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } @Column(name = "PERCENT") public Double getPercent() { return percent; } public void setPercent(Double percent) { this.percent = percent; } @Column(name = "LECTURE_UPDATE_TIME") @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore public Date getLectureUpdateTime() { return lectureUpdateTime; } public void setLectureUpdateTime(Date lectureUpdateTime) { this.lectureUpdateTime = lectureUpdateTime; } @Id @Column(name = "SUBJECT_ID") public String getSubjectId() { return subjectId; } public void setSubjectId(String subjectId) { this.subjectId = subjectId; } @Column(name = "LECTURE_CREATE_TIME") public Date getLectureCreateTime() { return lectureCreateTime; } public void setLectureCreateTime(Date lectureCreateTime) { this.lectureCreateTime = lectureCreateTime; } }