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

    private static final long serialVersionUID = 1L;

    private String id;
    private String adminId;
    private Integer roleId;

    public SysAdminRole() {}

    public SysAdminRole(SysAdminRole value) {
        this.id = value.id;
        this.adminId = value.adminId;
        this.roleId = value.roleId;
    }

    public SysAdminRole(
        String id,
        String adminId,
        Integer roleId
    ) {
        this.id = id;
        this.adminId = adminId;
        this.roleId = roleId;
    }

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

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

    /**
     * Getter for <code>yx.sys_admin_role.admin_id</code>.
     */
    public String getAdminId() {
        return this.adminId;
    }

    /**
     * Setter for <code>yx.sys_admin_role.admin_id</code>.
     */
    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    /**
     * Getter for <code>yx.sys_admin_role.role_id</code>.
     */
    public Integer getRoleId() {
        return this.roleId;
    }

    /**
     * Setter for <code>yx.sys_admin_role.role_id</code>.
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

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

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

        sb.append(id);
        sb.append(", ").append(adminId);
        sb.append(", ").append(roleId);

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