/*
 * This file is generated by jOOQ.
 */
package jj.tech.paolu.repository.jooq.tables.pojos;


import java.io.Serializable;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class SysOrg implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    private String pid;
    private Integer status;
    private String orgType;

    public SysOrg() {}

    public SysOrg(SysOrg value) {
        this.id = value.id;
        this.pid = value.pid;
        this.status = value.status;
        this.orgType = value.orgType;
    }

    public SysOrg(
        String id,
        String pid,
        Integer status,
        String orgType
    ) {
        this.id = id;
        this.pid = pid;
        this.status = status;
        this.orgType = orgType;
    }

    /**
     * Getter for <code>yx.sys_org.id</code>.
     */
    public String getId() {
        return this.id;
    }

    /**
     * Setter for <code>yx.sys_org.id</code>.
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Getter for <code>yx.sys_org.pid</code>.
     */
    public String getPid() {
        return this.pid;
    }

    /**
     * Setter for <code>yx.sys_org.pid</code>.
     */
    public void setPid(String pid) {
        this.pid = pid;
    }

    /**
     * Getter for <code>yx.sys_org.status</code>.
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * Setter for <code>yx.sys_org.status</code>.
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * Getter for <code>yx.sys_org.org_type</code>.
     */
    public String getOrgType() {
        return this.orgType;
    }

    /**
     * Setter for <code>yx.sys_org.org_type</code>.
     */
    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final SysOrg other = (SysOrg) obj;
        if (this.id == null) {
            if (other.id != null)
                return false;
        }
        else if (!this.id.equals(other.id))
            return false;
        if (this.pid == null) {
            if (other.pid != null)
                return false;
        }
        else if (!this.pid.equals(other.pid))
            return false;
        if (this.status == null) {
            if (other.status != null)
                return false;
        }
        else if (!this.status.equals(other.status))
            return false;
        if (this.orgType == null) {
            if (other.orgType != null)
                return false;
        }
        else if (!this.orgType.equals(other.orgType))
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
        result = prime * result + ((this.pid == null) ? 0 : this.pid.hashCode());
        result = prime * result + ((this.status == null) ? 0 : this.status.hashCode());
        result = prime * result + ((this.orgType == null) ? 0 : this.orgType.hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("SysOrg (");

        sb.append(id);
        sb.append(", ").append(pid);
        sb.append(", ").append(status);
        sb.append(", ").append(orgType);

        sb.append(")");
        return sb.toString();
    }
}
