Class Course

java.lang.Object
org.beangle.commons.entity.pojo.NumberIdObject<T>
All Implemented Interfaces:
Serializable, Comparable<Course>, org.beangle.commons.entity.Entity<Long>, org.beangle.commons.entity.TimeEntity, ProjectBasedEntity<Long>

@Entity(name="org.openurp.base.edu.model.Course")
public class Course
extends ProjectBasedObject<Long>
implements Comparable<Course>
课程基本信息
Since:
2008-09-24
See Also:
Serialized Form
  • Field Details

    • code

      @NotNull @Size(max=32) protected String code
      课程代码
    • name

      @NotNull @Size(max=255) protected String name
      课程名称
    • enName

      @Size(max=300) protected String enName
      课程英文名
    • remark

      @Size(max=500) protected String remark
      课程备注
  • Constructor Details

    • Course

      public Course()
    • Course

      public Course​(Long id)
  • Method Details

    • getBeginOn

      public Date getBeginOn()
    • setBeginOn

      public void setBeginOn​(Date beginOn)
    • getEndOn

      public Date getEndOn()
    • setEndOn

      public void setEndOn​(Date endOn)
    • getCode

      public String getCode()
    • setCode

      public void setCode​(String code)
    • getCredits

      public float getCredits()
    • setCredits

      public void setCredits​(float credits)
    • getEnName

      public String getEnName()
    • setEnName

      public void setEnName​(String enName)
    • getName

      public String getName()
    • setName

      public void setName​(String name)
    • getRemark

      public String getRemark()
    • setRemark

      public void setRemark​(String remark)
    • compareTo

      public int compareTo​(Course other)
      Specified by:
      compareTo in interface Comparable<Course>
    • getCreditHours

      public int getCreditHours()
    • setCreditHours

      public void setCreditHours​(int creditHours)
    • getWeekHours

      public int getWeekHours()
    • setWeekHours

      public void setWeekHours​(int weekHours)
    • getWeeks

      public Integer getWeeks()
    • setWeeks

      public void setWeeks​(Integer weeks)
    • getDepartment

      public Department getDepartment()
    • setDepartment

      public void setDepartment​(Department department)
    • getCourseType

      public CourseType getCourseType()
    • setCourseType

      public void setCourseType​(CourseType courseType)
    • getExamMode

      public ExamMode getExamMode()
    • setExamMode

      public void setExamMode​(ExamMode examMode)
    • getAbilityRates

      public Set<CourseAbilityRate> getAbilityRates()
    • setAbilityRates

      public void setAbilityRates​(Set<CourseAbilityRate> abilityRates)
    • getMajors

      public Set<Major> getMajors()
    • setMajors

      public void setMajors​(Set<Major> majors)
    • getXmajors

      public Set<Major> getXmajors()
    • setXmajors

      public void setXmajors​(Set<Major> xmajors)
    • getTextbooks

      public Set<Textbook> getTextbooks()
    • setTextbooks

      public void setTextbooks​(Set<Textbook> textbooks)
    • getCreditHourString

      public String getCreditHourString()
    • getHour

      public Integer getHour​(TeachingNature type)
    • getHourById

      public Integer getHourById​(Integer typeId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getHours

      public List<CourseHour> getHours()
    • setHours

      public void setHours​(List<CourseHour> courseHours)
    • getLevels

      public Set<AcademicLevel> getLevels()
    • setLevels

      public void setLevels​(Set<AcademicLevel> levels)
    • getGradingModes

      public Set<GradingMode> getGradingModes()
    • setGradingModes

      public void setGradingModes​(Set<GradingMode> gradingModes)
    • isEnabled

      public boolean isEnabled()
    • isHasMakeup

      public boolean isHasMakeup()
    • setHasMakeup

      public void setHasMakeup​(boolean hasMakeup)
    • isPractical

      public boolean isPractical()
    • getNature

      public CourseNature getNature()
    • setNature

      public void setNature​(CourseNature nature)
    • setEnabled

      public void setEnabled​(boolean e)
    • getCategory

      public CourseCategory getCategory()
    • setCategory

      public void setCategory​(CourseCategory category)
    • isCalgp

      public boolean isCalgp()
    • setCalgp

      public void setCalgp​(boolean calgp)