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

    private static final long serialVersionUID = 1L;

    private String id;
    private String roleid;
    private String url;
    private Integer urltypes;

    public SysRoleUrl() {}

    public SysRoleUrl(SysRoleUrl value) {
        this.id = value.id;
        this.roleid = value.roleid;
        this.url = value.url;
        this.urltypes = value.urltypes;
    }

    public SysRoleUrl(
        String id,
        String roleid,
        String url,
        Integer urltypes
    ) {
        this.id = id;
        this.roleid = roleid;
        this.url = url;
        this.urltypes = urltypes;
    }

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

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

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

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

    /**
     * Getter for <code>yx.sys_role_url.url</code>. 对应sys_urls的url
     */
    public String getUrl() {
        return this.url;
    }

    /**
     * Setter for <code>yx.sys_role_url.url</code>. 对应sys_urls的url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Getter for <code>yx.sys_role_url.urltypes</code>. 1:url,2:菜单
     */
    public Integer getUrltypes() {
        return this.urltypes;
    }

    /**
     * Setter for <code>yx.sys_role_url.urltypes</code>. 1:url,2:菜单
     */
    public void setUrltypes(Integer urltypes) {
        this.urltypes = urltypes;
    }

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

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

        sb.append(id);
        sb.append(", ").append(roleid);
        sb.append(", ").append(url);
        sb.append(", ").append(urltypes);

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