package com.ssj.bean.weixin.zyb.domain;

import com.ssj.bean.common.framework.core.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;


/** 
 * @author  ZhangCaibao 
 * @version 2017年7月4日 上午10:38:41 
 * 类说明   课程表
 */
@Entity
@Table(name = "zyb_course")
public class ZuoybCourse  extends BaseEntity{
    /**
	 * 
	 */
	private static final long serialVersionUID = -6876762355111138793L;
	/**
     * 课程名称
     */
	private String courseName;
	/**
	 * 课程时段
	 */
	private String courseHour;
	/**
	 * 创建时间
	 */
	
	private Date  createTime;
	/**
	 * 图书馆ID
	 */
	private String libId;
	/**
	 * 具体时间
	 */
	private String details;
	
	private String icon;
	/**
	 * 排序
	 */
	private Integer num;
	/**
	 * 课程对应一周
	 */
	//private List<ZuoybWeek>  weekList = new ArrayList<ZuoybWeek>();
	
	private Map<String,Object> map = new HashMap<String,Object>();
	
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public String getCourseHour() {
		return courseHour;
	}
	public void setCourseHour(String courseHour) {
		this.courseHour = courseHour;
	}
	@Column(updatable =false)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getLibId() {
		return libId;
	}
	public void setLibId(String libId) {
		this.libId = libId;
	}
/*	@OneToMany(cascade = { CascadeType.REFRESH}, fetch=FetchType.EAGER)
	@JoinColumn(name="zybCourseId",updatable =false,insertable =false)
	@OrderBy(" days asc")
	public List<ZuoybWeek> getWeekList() {
		return weekList;
	}
	public void setWeekList(List<ZuoybWeek> weekList) {
		this.weekList = weekList;
	}*/
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	@Transient
	public Map<String, Object> getMap() {
		return map;
	}
	public void setMap(Map<String, Object> map) {
		this.map = map;
	}
	
	
	
}
