/*
 * 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 SysRoleResource implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    private String roleid;
    private String resid;

    public SysRoleResource() {}

    public SysRoleResource(SysRoleResource value) {
        this.id = value.id;
        this.roleid = value.roleid;
        this.resid = value.resid;
    }

    public SysRoleResource(
        String id,
        String roleid,
        String resid
    ) {
        this.id = id;
        this.roleid = roleid;
        this.resid = resid;
    }

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

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

    /**
     * Getter for <code>yx.sys_role_resource.roleid</code>.
     */
    public String getRoleid() {
        return this.roleid;
    }

    /**
     * Setter for <code>yx.sys_role_resource.roleid</code>.
     */
    public void setRoleid(String roleid) {
        this.roleid = roleid;
    }

    /**
     * Getter for <code>yx.sys_role_resource.resid</code>.
     */
    public String getResid() {
        return this.resid;
    }

    /**
     * Setter for <code>yx.sys_role_resource.resid</code>.
     */
    public void setResid(String resid) {
        this.resid = resid;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final SysRoleResource other = (SysRoleResource) obj;
        if (this.id == null) {
            if (other.id != null)
                return false;
        }
        else if (!this.id.equals(other.id))
            return false;
        if (this.roleid == null) {
            if (other.roleid != null)
                return false;
        }
        else if (!this.roleid.equals(other.roleid))
            return false;
        if (this.resid == null) {
            if (other.resid != null)
                return false;
        }
        else if (!this.resid.equals(other.resid))
            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.roleid == null) ? 0 : this.roleid.hashCode());
        result = prime * result + ((this.resid == null) ? 0 : this.resid.hashCode());
        return result;
    }

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

        sb.append(id);
        sb.append(", ").append(roleid);
        sb.append(", ").append(resid);

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