package org.well.well.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 */
@Entity
@Table(name = "sys_dept")
public class SysDept  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 排序
     */
    @Column(name ="num")
    private Integer num;
    /**
     * 父部门id
     */
    @Column(name ="pid")
    private String pid;
    /**
     * 父级ids
     */
    @Column(name ="pids")
    private String pids;
    /**
     * 简称
     */
    @Column(name ="simplename")
    private String simplename;
    /**
     * 全称
     */
    @Column(name ="fullname")
    private String fullname;
    /**
     * 提示
     */
    @Column(name ="tips")
    private String tips;
    /**
     * 版本（乐观锁保留字段）
     */
    @Column(name ="version")
    private Integer version;


    @Column(name ="TENANT_ID")
    private String tenantId;

    public Long getId() {
        return id;
    }

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

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getPid() {
        return pid;
    }

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

    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public String getSimplename() {
        return simplename;
    }

    public void setSimplename(String simplename) {
        this.simplename = simplename;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
}
