package org.cs.mgr.admin.model;

import java.io.Serializable;
import java.util.Date;

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

/**
 * ��Ʒ-��Ա-����
 * @author Administrator
 *
 */
@Entity
@Table(name = "mgr_p_u_class")
public class PUClass implements Serializable{
	
    /**
	 * @fieldName: serialVersionUID
	 * @fieldType: long
	 * @Description: TODO
	 */

	private Integer id;  // action i
    
    private Integer val;   //   
    private String name;
    private String showName;//微信，ios，android端类别查询展示
    private String attr1;
    private String attr2;
    private String attr3;
    private String type;//type="1" 地产2级分类   type="2" 产品2级分类
    private Integer projectId;// type = "1"时有值，地产对应的地产项目
    private Date createDate;
    private Date modifyDate;
    
    
    @Id
	@SequenceGenerator(name="TB_P_U_CLASS",sequenceName="PU_CLASS_SEQ")
	@GeneratedValue(generator="TB_P_U_CLASS",strategy=GenerationType.SEQUENCE)
	@Column(name = "id", unique = true, nullable = false, precision = 11, scale = 0)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
	
    @Column(name = "project_id",columnDefinition="INT default 0")
	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	@Column(name = "val",columnDefinition="INT default 0")
	public Integer getVal() {
		return val;
	}

	public void setVal(Integer val) {
		this.val = val;
	}

	public String getAttr1() {
		return attr1;
	}

	public void setAttr1(String attr1) {
		this.attr1 = attr1;
	}

	public String getAttr2() {
		return attr2;
	}

	public void setAttr2(String attr2) {
		this.attr2 = attr2;
	}

	public String getAttr3() {
		return attr3;
	}

	public void setAttr3(String attr3) {
		this.attr3 = attr3;
	}


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

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

	@Column(name = "show_name", columnDefinition="VARCHAR2(255) " )
	public String getShowName() {
		return showName;
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}

	@Column(name = "type", columnDefinition="VARCHAR2(2) " )
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "modify_date")
	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getName() {
		return name;
	}

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