org.openurp.edu.program.flow.CourseAlternativeApply Maven / Gradle / Ivy
/*
* OpenURP, Agile University Resource Planning Solution.
*
* Copyright © 2014, The OpenURP Software.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.openurp.edu.program.flow;
import org.beangle.commons.collection.CollectUtils;
import org.beangle.commons.entity.pojo.LongIdObject;
import org.openurp.base.edu.model.Course;
import org.openurp.base.model.User;
import org.openurp.base.std.model.Student;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.Set;
@Entity(name = "org.openurp.edu.program.flow.CourseAlternativeApply")
public class CourseAlternativeApply extends LongIdObject {
/**
* 学生
*/
@NotNull
@ManyToOne(fetch = FetchType.LAZY)
private Student std;
/**
* 被替代的课程
*/
@ManyToMany
@JoinTable(name = "edu_course_alt_applies_olds",
joinColumns = {@JoinColumn(nullable = false, name = "course_alt_apply_id")}
)
private Set olds = CollectUtils.newHashSet();
/**
* 已替代的课程
*/
@ManyToMany
@JoinTable(name = "edu_course_alt_applies_news",
joinColumns = {@JoinColumn(nullable = false, name = "course_alt_apply_id")}
)
private Set news = CollectUtils.newHashSet();
/**
* 最后修改时间
*/
protected Date updatedAt;
private Boolean approved;
@Size(max = 400)
private String remark;
@ManyToOne(fetch = FetchType.LAZY)
private User auditor;
@Size(max = 600)
private String reply;
private Date auditAt;
public Student getStd() {
return std;
}
public void setStd(Student std) {
this.std = std;
}
public Set getOlds() {
return olds;
}
public void setOlds(Set olds) {
this.olds = olds;
}
public Set getNews() {
return news;
}
public void setNews(Set news) {
this.news = news;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Boolean getApproved() {
return approved;
}
public void setApproved(Boolean approved) {
this.approved = approved;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public User getAuditor() {
return auditor;
}
public void setAuditor(User auditor) {
this.auditor = auditor;
}
public String getReply() {
return reply;
}
public void setReply(String reply) {
this.reply = reply;
}
public Date getAuditAt() {
return auditAt;
}
public void setAuditAt(Date auditAt) {
this.auditAt = auditAt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy