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

import java.io.Serializable;

import javax.persistence.*;

/**
 * Created by 01113216 on 16-3-8.
 */
@Entity
@Table(name = "mooc_unit_item")
public class UnitItem implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long itemId;
    private Long unitId;
    private String itemName;
    private String videoName;
    private String videoPic;
    private String videoUrl;
    private Integer displayOrder;
    private Long duration;
    private Integer deleteFlag;
    private String videoFlvUrl;

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

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    @Basic
    @Column(name = "UNIT_ID")
    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    @Basic
    @Column(name = "ITEM_NAME")
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Basic
    @Column(name = "VIDEO_NAME")
    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    @Basic
    @Column(name = "VIDEO_PIC")
    public String getVideoPic() {
        return videoPic;
    }

    public void setVideoPic(String videoPic) {
        this.videoPic = videoPic;
    }

    @Basic
    @Column(name = "VIDEO_URL")
    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

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

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

    @Column(name = "DURATION")
    public Long getDuration() {
		return duration;
	}

	public void setDuration(Long duration) {
		this.duration = duration;
	}

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

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

	@Column(name = "VIDEO_FLV_URL")
	public String getVideoFlvUrl() {
		return videoFlvUrl;
	}

	public void setVideoFlvUrl(String videoFlvUrl) {
		this.videoFlvUrl = videoFlvUrl;
	}
	
}
