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

import java.util.Date;

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

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.com.countrygarden.bi.main.util.DateTimeDeserializer;
import cn.com.countrygarden.bi.main.util.DateTimeSerializer;
/**
 * 项目配置菜单
 * 
 * <pre>
 * 。
 * </pre>
 * 
 * @author developer developer@meicloud.com
 * @version 1.00.00
 * 
 *          <pre>
 * 修改记录
 *    修改后版本:     修改人：  修改日期:     修改内容:
 * </pre>
 */
@Table(name = "project_menu")
public class ProjectMenu {
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
	
	 /**
     * 菜单名称
     */
    @Column(name = "name")
    private String name;
    
    /**
     * 父级菜单id
     * 
     */
    @Column(name = "parent_id")
    private Integer parentId;
    /**
     * 是
     */
    public  static final  int ISONE_YES = 1;
    /**
     * 否
     */
    public  static final  int ISONE_NO = 2;
    
    /**
     * 是否单一项目进度动态
     */
    @Column(name = "isOne")
    private Integer isOne;
    
    @JsonDeserialize(using = DateTimeDeserializer.class)
    @Column(name = "gmt_create")
    private Date createdDate;

    @Column(name = "create_by")
    private String createdBy;

    @JsonSerialize(using = DateTimeSerializer.class)
    @JsonDeserialize(using = DateTimeDeserializer.class)
    @Column(name = "gmt_modified")
    private Date updatedDate;

    @Column(name = "modified_by")
    private String updatedBy;
    /**
     * 是否可用，0为可用，1为删除
     */
    @Column(name = "is_delete")
    private Integer isDelete;

	public Date getCreatedDate() {
		return createdDate;
	}


	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}


	public String getCreatedBy() {
		return createdBy;
	}


	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


	public Date getUpdatedDate() {
		return updatedDate;
	}


	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}


	public String getUpdatedBy() {
		return updatedBy;
	}


	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


	public Integer getIsDelete() {
		return isDelete;
	}


	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}


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


	public Integer getId() {
		return id;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getIsOne() {
		return isOne;
	}

	public void setIsOne(Integer isOne) {
		this.isOne = isOne;
	}
    
    
}
