package cn.com.countrygarden.bi.main.model.project;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "project_class")
public class ProjectClass {
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
	@Column(name = "name")
	public static final String CODE_CLASSBYWAITING = "classByWaiting";
	public static final String CODE_CLASSBYSTOP = "classByStop";
	public static final String CODE_CLASSBYY = "classByY";
	public static final String CODE_CLASSBYO = "classByO";
	public static final String CODE_CLASSBYD = "classByD";
	public static final String CODE_CLASSBYC = "classByC";
	public static final String CODE_CLASSBYB = "classByB";
	public static final String CODE_CLASSBYA = "classByA";
    private String name;
	@Column(name = "code")
    private String code;
	@Column(name = "sort")
    private Integer sort;

	@Column(name = "yellow")
    private Integer yellow;
	@Column(name = "red")
    private Integer red;
	@Column(name = "black")
    private Integer black;
	
    public Integer getBlack() {
		return black;
	}

	public void setBlack(Integer black) {
		this.black = black;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

	public Integer getYellow() {
		return yellow;
	}

	public void setYellow(Integer yellow) {
		this.yellow = yellow;
	}

	public Integer getRed() {
		return red;
	}

	public void setRed(Integer red) {
		this.red = red;
	}
    
}