package com.qxueyou.scc.teach.student.model; // Generated 2018-3-15 16:54:31 by Hibernate Tools 5.2.8.Final import java.math.BigDecimal; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.annotations.GenericGenerator; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.qxueyou.scc.base.model.ITrace; /** * StuStudent generated by hbm2java */ @Entity @Table(name = "stu_student") public class StuStudent implements java.io.Serializable,ITrace { private static final long serialVersionUID = 7504161189427721559L; /* * 状态: 已报名 */ public static final String STATUS_REGISTER = "register"; public static final String STATUS_ACTIVE = "active"; public static final String STATUS_DEACTIVE = "deactive"; private String studentId; private Date createTime; private Date updateTime; private String creator; private String createId; private String updator; private String updateId; private boolean deleteFlag; private String userId; private String name; private String classId; private String subjectId; private String tenantId; private String status; private String studentNo; private boolean sex; private String mobilePhone; private BigDecimal studyDuration; private BigDecimal score; private String studentNumber; private String attendanceStatus; public StuStudent() { } public StuStudent(String studentId, Date createTime, Date updateTime, String creator, String createId, boolean deleteFlag,String studentNumber) { this.studentId = studentId; this.createTime = createTime; this.updateTime = updateTime; this.creator = creator; this.createId = createId; this.deleteFlag = deleteFlag; this.studentNumber=studentNumber; } public StuStudent(String studentId, Date createTime, Date updateTime, String creator, String createId, String updator, String updateId, boolean deleteFlag, String userId, String name, String classId, String tenantId, String status, String attendanceStatus,String studentNumber) { this.studentId = studentId; this.createTime = createTime; this.updateTime = updateTime; this.creator = creator; this.createId = createId; this.updator = updator; this.updateId = updateId; this.deleteFlag = deleteFlag; this.userId = userId; this.name = name; this.classId = classId; this.tenantId = tenantId; this.status = status; this.attendanceStatus = attendanceStatus; this.studentNumber=studentNumber; } @Id @GeneratedValue(generator = "hibernate-uuid") @GenericGenerator(name = "hibernate-uuid", strategy = "uuid") @Column(name = "STUDENT_ID", unique = true, nullable = false, length = 32) public String getStudentId() { return this.studentId; } public void setStudentId(String studentId) { this.studentId = studentId; } @Column(name = "CREATE_TIME", nullable = false, length = 19) @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore public Date getCreateTime() { return this.createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Column(name = "UPDATE_TIME", nullable = false, length = 19) @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore public Date getUpdateTime() { return this.updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Column(name = "CREATOR", nullable = false, length = 100) public String getCreator() { return this.creator; } public void setCreator(String creator) { this.creator = creator; } @Column(name = "CREATE_ID", nullable = false, length = 32) public String getCreateId() { return this.createId; } public void setCreateId(String createId) { this.createId = createId; } @Column(name = "UPDATOR", length = 100) public String getUpdator() { return this.updator; } public void setUpdator(String updator) { this.updator = updator; } @Column(name = "UPDATE_ID", length = 32) public String getUpdateId() { return this.updateId; } public void setUpdateId(String updateId) { this.updateId = updateId; } @Column(name = "DELETE_FLAG", nullable = false) public boolean getDeleteFlag() { return this.deleteFlag; } public void setDeleteFlag(boolean deleteFlag) { this.deleteFlag = deleteFlag; } @Column(name = "USER_ID", length = 32) public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } @Column(name = "NAME", length = 150) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name = "CLASS_ID", length = 32) public String getClassId() { return this.classId; } public void setClassId(String classId) { this.classId = classId; } @Column(name = "TENANT_ID", length = 32) public String getTenantId() { return this.tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } @Column(name = "STATUS", length = 16) public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } @Column(name = "ATTENDANCE_STATUS", length = 16) public String getAttendanceStatus() { return this.attendanceStatus; } public void setAttendanceStatus(String attendanceStatus) { this.attendanceStatus = attendanceStatus; } @Column(name = "STUDENT_NO", length = 32) public String getStudentNo() { return studentNo; } public void setStudentNo(String studentNo) { this.studentNo = studentNo; } @Column(name = "SEX") public boolean getSex() { return sex; } public void setSex(boolean sex) { this.sex = sex; } @Column(name = "MOBILE_PHONE", length = 16) public String getMobilePhone() { return mobilePhone; } public void setMobilePhone(String mobilePhone) { this.mobilePhone = mobilePhone; } @Column(name = "STUDY_DURATION", precision = 10, scale = 2) public BigDecimal getStudyDuration() { return studyDuration; } public void setStudyDuration(BigDecimal studyDuration) { this.studyDuration = studyDuration; } @Column(name = "SCORE", precision = 10, scale = 2) public BigDecimal getScore() { return score; } public void setScore(BigDecimal score) { this.score = score; } @Column(name = "SUBJECT_ID", length=32) public String getSubjectId() { return subjectId; } public void setSubjectId(String subjectId) { this.subjectId = subjectId; } @Column(name = "STUDENTSUMBER", length=30) public String getStudentNumber() { return studentNumber; } public void setStudentNumber(String studentNumber) { this.studentNumber = studentNumber; } }