package com.hnshituo.core.auth.vo;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hnshituo.basic.vo.BaseVO;
import com.hnshituo.core.auth.mapper.RoleMapper;
import com.hnshituo.orm.annotation.Column;
import com.hnshituo.orm.annotation.Id;
import com.hnshituo.orm.annotation.Id.GenerationStrategy;
import com.hnshituo.orm.annotation.Table;

@Table(name="CORE_AUTH_ROLE", namespace=RoleMapper.class, cache=true)
public class Role extends BaseVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7813210874372788042L;

	/** 角色编号 */
	@Id(generationStrategy=GenerationStrategy.AUTO)
	private Integer id;

	/** 角色名称 */
	@Column
	private String name;

	/** 父角色编号 */
	@Column
	private Integer pid;

	/** 创建部门 */
	@Column("CREATE_DEPT_ID")
	private String createDeptId;
	
	@Column("WHOLE_DATA_PRG")
	private Integer wholeDataPrg;

	@Column("CREATE_MAN")
	private String createMan;

	/** 创建时间 */
	@Column("CREATE_TIME")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/** 修改人 */
	@Column("UPDATE_MAN")
	private String updateMan;

	/** 修改时间 */
	@Column("UPDATE_TIME")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	/** 备注 */
	@Column
	private String memo;

	public Integer getId() {
		return this.id;
	}

	public String getName() {
		return this.name;
	}

	public Integer getPid() {
		return this.pid;
	}

	public String getCreateDeptId() {
		return this.createDeptId;
	}

	public String getCreateMan() {
		return this.createMan;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public String getUpdateMan() {
		return this.updateMan;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public String getMemo() {
		return this.memo;
	}

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

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

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public void setCreateDeptId(String createDeptId) {
		this.createDeptId = createDeptId;
	}

	public void setCreateMan(String createMan) {
		this.createMan = createMan;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setUpdateMan(String updateMan) {
		this.updateMan = updateMan;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Integer getWholeDataPrg() {
		return wholeDataPrg;
	}

	public void setWholeDataPrg(Integer wholeDataPrg) {
		this.wholeDataPrg = wholeDataPrg;
	}
}

