| package com.qxueyou.scc.org.model; | 
|   | 
| import java.io.Serializable; | 
| import java.math.BigDecimal; | 
| import java.util.Date; | 
|   | 
| import javax.persistence.CascadeType; | 
| import javax.persistence.Column; | 
| import javax.persistence.Entity; | 
| import javax.persistence.FetchType; | 
| import javax.persistence.GeneratedValue; | 
| import javax.persistence.Id; | 
| import javax.persistence.JoinColumn; | 
| import javax.persistence.ManyToOne; | 
| import javax.persistence.NamedQuery; | 
| import javax.persistence.Table; | 
| import javax.persistence.Transient; | 
|   | 
| import org.hibernate.annotations.GenericGenerator; | 
| import org.springframework.format.annotation.DateTimeFormat; | 
|   | 
| import com.fasterxml.jackson.annotation.JsonIgnore; | 
| import com.qxueyou.scc.base.model.ITrace; | 
|   | 
|   | 
| /** | 
|  * 机构专业 | 
|  * @author ody.yuan | 
|  * | 
|  */ | 
| @Entity | 
| @Table(name="ORG_COLLEGE_COURSE") | 
| @NamedQuery(name="OrgCollegeCourse.findAll", query="SELECT o FROM OrgCollegeCourse o") | 
| public class OrgCollegeCourse implements Serializable,ITrace { | 
|      | 
|     private static final long serialVersionUID = 1L; | 
|      | 
|     /** 层次(1学科 2 门类  3专业) */ | 
|     public static final short ORG_COLLEGE_COURSE_TYPE_SUBJECT = 1; | 
|      | 
|     public static final short ORG_COLLEGE_COURSE_TYPE_CATEGORY = 2; | 
|      | 
|     public static final short ORG_COLLEGE_COURSE_TYPE_MAJOR = 3; | 
|      | 
|     @Id | 
|     @GeneratedValue(generator = "hibernate-uuid") | 
|     @GenericGenerator(name = "hibernate-uuid", strategy = "uuid") | 
|     @Column(name="COLLEGE_COURSE_ID", unique=true, nullable=false, length=32) | 
|     private String collegeCourseId; | 
|      | 
|     /** 编码 */ | 
|     @Column(name="CODE",length=64) | 
|     private String code; | 
|   | 
|     /** 介绍 */ | 
|     @Column(name="CONTENT") | 
|     private String content; | 
|   | 
|     /** 分类id */ | 
|     @Column(name="COURSE_CATEGORY_ID", length=32) | 
|     private String courseCategoryId; | 
|   | 
|     /** 分类名 */ | 
|     @Column(name="COURSE_CATEGORY_NAME", length=150) | 
|     private String courseCategoryName; | 
|   | 
|     @Column(name="CREATE_ID", nullable=false, length=32) | 
|     @JsonIgnore | 
|     private String createId; | 
|   | 
|     @Column(name="CREATE_TIME", nullable=false) | 
|     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|     @JsonIgnore | 
|     private Date createTime; | 
|   | 
|     @Column(name="CREATOR", nullable=false, length=100) | 
|     @JsonIgnore | 
|     private String creator; | 
|   | 
|     @Column(name="DELETE_FLAG", nullable=false) | 
|     @JsonIgnore | 
|     private boolean deleteFlag; | 
|   | 
|     @Column(name="NAME", length=255) | 
|     private String name; | 
|   | 
|     /**  机构ID  */ | 
|     @Column(name="ORGANIZATION_ID", length=32) | 
|     private String organizationId; | 
|      | 
|      | 
|     @Transient | 
|     private String orgName; | 
|      | 
|     @Transient | 
|     private String orgTel; | 
|      | 
|     @Column(name="PRICE", nullable=false, precision=16, scale=2) | 
|     private BigDecimal price; | 
|   | 
|     @Column(name="TEACHER", length=255) | 
|     private String teacher; | 
|      | 
|     @Column(name="IMG_PATH", length=255) | 
|     private String imgPath; | 
|   | 
|     @Column(name="UPDATE_ID", length=32) | 
|     @JsonIgnore | 
|     private String updateId; | 
|   | 
|     @Column(name="UPDATE_TIME", nullable=false) | 
|     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|     @JsonIgnore | 
|     private Date updateTime; | 
|   | 
|     @Column(name="UPDATOR", length=100) | 
|     @JsonIgnore | 
|     private String updator; | 
|      | 
|     @Column(name="RECOMMEND", nullable=false) | 
|     private boolean recommend; | 
|      | 
|     /**  专业ID  */ | 
|     @Column(name="COURSE_ID", length=32) | 
|     private String courseId; | 
|      | 
|     /**  院系ID  */ | 
|     @Column(name="COLLEGE_ID", length=32) | 
|     private String collegeId; | 
|      | 
|     /**  层次(学科  门类  专业)  */ | 
|     @Column(name="LEVEL_") | 
|     private short level; | 
|      | 
|     /**  类型:1本科  2专科 3硕士   4博士  */ | 
|     @Column(name="TYPE") | 
|     private short type; | 
|      | 
|     @Column(name="TOP_ORG_ID", length=32) | 
|     private String topOrgId; | 
|      | 
|     @Column(name="ORDER_NUM") | 
|     private int orderNum; | 
|   | 
|     @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) | 
|     @JoinColumn(name = "ORGANIZATION_ID",referencedColumnName="ORGANIZATION_ID",updatable=false,insertable=false) | 
|     @JsonIgnore | 
|     private Organization org; | 
|      | 
|     @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) | 
|     @JoinColumn(name = "TOP_ORG_ID",referencedColumnName="ORGANIZATION_ID",updatable=false,insertable=false) | 
|     @JsonIgnore | 
|     private Organization topOrg; | 
|      | 
|     //新加映射 2017-11-1 | 
|     @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) | 
|     @JoinColumn(name = "COURSE_CATEGORY_ID",referencedColumnName="CATEGORY_LEVEL_ID",updatable=false,insertable=false) | 
|     @JsonIgnore | 
|     private OrgCategoryLevel category; | 
|      | 
|     public int getOrderNum() { | 
|         return orderNum; | 
|     } | 
|   | 
|     public void setOrderNum(int orderNum) { | 
|         this.orderNum = orderNum; | 
|     } | 
|      | 
|     public OrgCategoryLevel getCategory() { | 
|         return category; | 
|     } | 
|   | 
|     public void setCategory(OrgCategoryLevel category) { | 
|         this.category = category; | 
|     } | 
|   | 
|     @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) | 
|     @JoinColumn(name = "COURSE_ID",referencedColumnName="COURSE_ID",updatable=false,insertable=false) | 
|     @JsonIgnore | 
|     private OrgCourse orgCourse; | 
|      | 
|     @Transient | 
|     private String classCount; | 
|      | 
|     /** 视频数量*/ | 
|     @Transient | 
|     private Integer videoCount; | 
|      | 
|     /** 讲义数量*/ | 
|     @Transient | 
|     private Integer handoutCount; | 
|      | 
|     /** 练习数量*/ | 
|     @Transient | 
|     private Integer groupCount; | 
|      | 
|     /** 文章数量*/ | 
|     @Transient | 
|     private Integer articleCount; | 
|      | 
|     /*@Column(name="ORDER_NUM") | 
|     private int orderNum; | 
|   | 
|     public int getOrderNum() { | 
|         return orderNum; | 
|     } | 
|   | 
|     public void setOrderNum(int orderNum) { | 
|         this.orderNum = orderNum; | 
|     }*/ | 
|   | 
|     /** | 
|      * @return the collegeCourseId | 
|      */ | 
|     public String getCollegeCourseId() { | 
|         return collegeCourseId; | 
|     } | 
|   | 
|     /** | 
|      * @param collegeCourseId the collegeCourseId to set | 
|      */ | 
|     public void setCollegeCourseId(String collegeCourseId) { | 
|         this.collegeCourseId = collegeCourseId; | 
|     } | 
|   | 
|     /** | 
|      * @return the code | 
|      */ | 
|     public String getCode() { | 
|         return code; | 
|     } | 
|   | 
|     /** | 
|      * @param code the code to set | 
|      */ | 
|     public void setCode(String code) { | 
|         this.code = code; | 
|     } | 
|   | 
|     /** | 
|      * @return the content | 
|      */ | 
|     public String getContent() { | 
|         return content; | 
|     } | 
|   | 
|     /** | 
|      * @param content the content to set | 
|      */ | 
|     public void setContent(String content) { | 
|         this.content = content; | 
|     } | 
|   | 
|     /** | 
|      * @return the courseCategoryId | 
|      */ | 
|     public String getCourseCategoryId() { | 
|         return courseCategoryId; | 
|     } | 
|   | 
|     /** | 
|      * @param courseCategoryId the courseCategoryId to set | 
|      */ | 
|     public void setCourseCategoryId(String courseCategoryId) { | 
|         this.courseCategoryId = courseCategoryId; | 
|     } | 
|   | 
|     /** | 
|      * @return the courseCategoryName | 
|      */ | 
|     public String getCourseCategoryName() { | 
|         return courseCategoryName; | 
|     } | 
|   | 
|     /** | 
|      * @param courseCategoryName the courseCategoryName to set | 
|      */ | 
|     public void setCourseCategoryName(String courseCategoryName) { | 
|         this.courseCategoryName = courseCategoryName; | 
|     } | 
|   | 
|     /** | 
|      * @return the createId | 
|      */ | 
|     public String getCreateId() { | 
|         return createId; | 
|     } | 
|   | 
|     /** | 
|      * @param createId the createId to set | 
|      */ | 
|     public void setCreateId(String createId) { | 
|         this.createId = createId; | 
|     } | 
|   | 
|     /** | 
|      * @return the createTime | 
|      */ | 
|     public Date getCreateTime() { | 
|         return createTime; | 
|     } | 
|   | 
|     /** | 
|      * @param createTime the createTime to set | 
|      */ | 
|     public void setCreateTime(Date createTime) { | 
|         this.createTime = createTime; | 
|     } | 
|   | 
|     /** | 
|      * @return the creator | 
|      */ | 
|     public String getCreator() { | 
|         return creator; | 
|     } | 
|   | 
|     /** | 
|      * @param creator the creator to set | 
|      */ | 
|     public void setCreator(String creator) { | 
|         this.creator = creator; | 
|     } | 
|   | 
|     /** | 
|      * @return the deleteFlag | 
|      */ | 
|     public boolean getDeleteFlag() { | 
|         return deleteFlag; | 
|     } | 
|   | 
|     /** | 
|      * @param deleteFlag the deleteFlag to set | 
|      */ | 
|     public void setDeleteFlag(boolean deleteFlag) { | 
|         this.deleteFlag = deleteFlag; | 
|     } | 
|   | 
|     /** | 
|      * @return the name | 
|      */ | 
|     public String getName() { | 
|         return name; | 
|     } | 
|   | 
|     /** | 
|      * @param name the name to set | 
|      */ | 
|     public void setName(String name) { | 
|         this.name = name; | 
|     } | 
|   | 
|     /** | 
|      * @return the organizationId | 
|      */ | 
|     public String getOrganizationId() { | 
|         return organizationId; | 
|     } | 
|   | 
|     /** | 
|      * @param organizationId the organizationId to set | 
|      */ | 
|     public void setOrganizationId(String organizationId) { | 
|         this.organizationId = organizationId; | 
|     } | 
|   | 
|     /** | 
|      * @return the orgName | 
|      */ | 
|     public String getOrgName() { | 
|         return orgName; | 
|     } | 
|   | 
|     /** | 
|      * @param orgName the orgName to set | 
|      */ | 
|     public void setOrgName(String orgName) { | 
|         this.orgName = orgName; | 
|     } | 
|   | 
|     /** | 
|      * @return the orgTel | 
|      */ | 
|     public String getOrgTel() { | 
|         return orgTel; | 
|     } | 
|   | 
|     /** | 
|      * @param orgTel the orgTel to set | 
|      */ | 
|     public void setOrgTel(String orgTel) { | 
|         this.orgTel = orgTel; | 
|     } | 
|   | 
|     /** | 
|      * @return the price | 
|      */ | 
|     public BigDecimal getPrice() { | 
|         return price; | 
|     } | 
|   | 
|     /** | 
|      * @param price the price to set | 
|      */ | 
|     public void setPrice(BigDecimal price) { | 
|         this.price = price; | 
|     } | 
|   | 
|     /** | 
|      * @return the teacher | 
|      */ | 
|     public String getTeacher() { | 
|         return teacher; | 
|     } | 
|   | 
|     /** | 
|      * @param teacher the teacher to set | 
|      */ | 
|     public void setTeacher(String teacher) { | 
|         this.teacher = teacher; | 
|     } | 
|   | 
|     /** | 
|      * @return the imgPath | 
|      */ | 
|     public String getImgPath() { | 
|         return imgPath; | 
|     } | 
|   | 
|     /** | 
|      * @param imgPath the imgPath to set | 
|      */ | 
|     public void setImgPath(String imgPath) { | 
|         this.imgPath = imgPath; | 
|     } | 
|   | 
|     /** | 
|      * @return the updateId | 
|      */ | 
|     public String getUpdateId() { | 
|         return updateId; | 
|     } | 
|   | 
|     /** | 
|      * @param updateId the updateId to set | 
|      */ | 
|     public void setUpdateId(String updateId) { | 
|         this.updateId = updateId; | 
|     } | 
|   | 
|     /** | 
|      * @return the updateTime | 
|      */ | 
|     public Date getUpdateTime() { | 
|         return updateTime; | 
|     } | 
|   | 
|     /** | 
|      * @param updateTime the updateTime to set | 
|      */ | 
|     public void setUpdateTime(Date updateTime) { | 
|         this.updateTime = updateTime; | 
|     } | 
|   | 
|     /** | 
|      * @return the updator | 
|      */ | 
|     public String getUpdator() { | 
|         return updator; | 
|     } | 
|   | 
|     /** | 
|      * @param updator the updator to set | 
|      */ | 
|     public void setUpdator(String updator) { | 
|         this.updator = updator; | 
|     } | 
|   | 
|     /** | 
|      * @return the recommend | 
|      */ | 
|     public boolean isRecommend() { | 
|         return recommend; | 
|     } | 
|   | 
|     /** | 
|      * @param recommend the recommend to set | 
|      */ | 
|     public void setRecommend(boolean recommend) { | 
|         this.recommend = recommend; | 
|     } | 
|   | 
|     /** | 
|      * @return the courseId | 
|      */ | 
|     public String getCourseId() { | 
|         return courseId; | 
|     } | 
|   | 
|     /** | 
|      * @param courseId the courseId to set | 
|      */ | 
|     public void setCourseId(String courseId) { | 
|         this.courseId = courseId; | 
|     } | 
|   | 
|     /** | 
|      * @return the collegeId | 
|      */ | 
|     public String getCollegeId() { | 
|         return collegeId; | 
|     } | 
|   | 
|     /** | 
|      * @param collegeId the collegeId to set | 
|      */ | 
|     public void setCollegeId(String collegeId) { | 
|         this.collegeId = collegeId; | 
|     } | 
|   | 
|     /** | 
|      * @return the level | 
|      */ | 
|     public short getLevel() { | 
|         return level; | 
|     } | 
|   | 
|     /** | 
|      * @param level the level to set | 
|      */ | 
|     public void setLevel(short level) { | 
|         this.level = level; | 
|     } | 
|   | 
|     /** | 
|      * @return the type | 
|      */ | 
|     public short getType() { | 
|         return type; | 
|     } | 
|   | 
|     /** | 
|      * @param type the type to set | 
|      */ | 
|     public void setType(short type) { | 
|         this.type = type; | 
|     } | 
|   | 
|     /** | 
|      * @return the topOrgId | 
|      */ | 
|     public String getTopOrgId() { | 
|         return topOrgId; | 
|     } | 
|   | 
|     /** | 
|      * @param topOrgId the topOrgId to set | 
|      */ | 
|     public void setTopOrgId(String topOrgId) { | 
|         this.topOrgId = topOrgId; | 
|     } | 
|   | 
|     /** | 
|      * @return the org | 
|      */ | 
|     public Organization getOrg() { | 
|         return org; | 
|     } | 
|   | 
|     /** | 
|      * @param org the org to set | 
|      */ | 
|     public void setOrg(Organization org) { | 
|         this.org = org; | 
|     } | 
|   | 
|     /** | 
|      * @return the topOrg | 
|      */ | 
|     public Organization getTopOrg() { | 
|         return topOrg; | 
|     } | 
|   | 
|     /** | 
|      * @param topOrg the topOrg to set | 
|      */ | 
|     public void setTopOrg(Organization topOrg) { | 
|         this.topOrg = topOrg; | 
|     } | 
|   | 
|     /** | 
|      * @return the orgCourse | 
|      */ | 
|     public OrgCourse getOrgCourse() { | 
|         return orgCourse; | 
|     } | 
|   | 
|     /** | 
|      * @param orgCourse the orgCourse to set | 
|      */ | 
|     public void setOrgCourse(OrgCourse orgCourse) { | 
|         this.orgCourse = orgCourse; | 
|     } | 
|   | 
|     /** | 
|      * @return the classCount | 
|      */ | 
|     public String getClassCount() { | 
|         return classCount; | 
|     } | 
|   | 
|     /** | 
|      * @param classCount the classCount to set | 
|      */ | 
|     public void setClassCount(String classCount) { | 
|         this.classCount = classCount; | 
|     } | 
|   | 
|     /** | 
|      * @return the videoCount | 
|      */ | 
|     public Integer getVideoCount() { | 
|         return videoCount; | 
|     } | 
|   | 
|     /** | 
|      * @param videoCount the videoCount to set | 
|      */ | 
|     public void setVideoCount(Integer videoCount) { | 
|         this.videoCount = videoCount; | 
|     } | 
|   | 
|     /** | 
|      * @return the handoutCount | 
|      */ | 
|     public Integer getHandoutCount() { | 
|         return handoutCount; | 
|     } | 
|   | 
|     /** | 
|      * @param handoutCount the handoutCount to set | 
|      */ | 
|     public void setHandoutCount(Integer handoutCount) { | 
|         this.handoutCount = handoutCount; | 
|     } | 
|   | 
|     /** | 
|      * @return the groupCount | 
|      */ | 
|     public Integer getGroupCount() { | 
|         return groupCount; | 
|     } | 
|   | 
|     /** | 
|      * @param groupCount the groupCount to set | 
|      */ | 
|     public void setGroupCount(Integer groupCount) { | 
|         this.groupCount = groupCount; | 
|     } | 
|   | 
|     public Integer getArticleCount() { | 
|         return articleCount; | 
|     } | 
|   | 
|     public void setArticleCount(Integer articleCount) { | 
|         this.articleCount = articleCount; | 
|     } | 
|      | 
|   | 
|      | 
| } |