package com.wisedu.mooc.app.platform.bo;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by 01112291 on 16-3-7.
 */
@Entity
@Table(name = "mooc_unit")
public class Unit implements java.io.Serializable,Cloneable {

    private static final long serialVersionUID = 1L;

    private Long unitId;

    private String unitNo;

    private String unitName;

    private Integer displayOrder;

    private Integer deleteFlag = 0;

    private Date createDate = new Date();
    private Integer progress;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "UNIT_ID", unique = true, nullable = false)
    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }
    @Column(name = "UNIT_NO")
    public String getUnitNo() {
        return unitNo;
    }

    public void setUnitNo(String unitNo) {
        this.unitNo = unitNo;
    }
    @Column(name = "UNIT_NAME")
    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    @Column(name = "DISPLAY_ORDER")
    public Integer getDisplayOrder() {
        return displayOrder;
    }

    public void setDisplayOrder(Integer displayOrder) {
        this.displayOrder = displayOrder;
    }

    @Column(name = "DELETE_FLAG")
    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Column(name = "CREATE_DATE")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Transient
	public Integer getProgress() {
		return progress;
	}

	public void setProgress(Integer progress) {
		this.progress = progress;
	}
}
