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

    private static final long serialVersionUID = 1L;

    private String id;
    private String adminid;
    private String memuid;

    public SysAdminMenu() {}

    public SysAdminMenu(SysAdminMenu value) {
        this.id = value.id;
        this.adminid = value.adminid;
        this.memuid = value.memuid;
    }

    public SysAdminMenu(
        String id,
        String adminid,
        String memuid
    ) {
        this.id = id;
        this.adminid = adminid;
        this.memuid = memuid;
    }

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

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

    /**
     * Getter for <code>yx.sys_admin_menu.adminid</code>.
     */
    public String getAdminid() {
        return this.adminid;
    }

    /**
     * Setter for <code>yx.sys_admin_menu.adminid</code>.
     */
    public void setAdminid(String adminid) {
        this.adminid = adminid;
    }

    /**
     * Getter for <code>yx.sys_admin_menu.memuid</code>.
     */
    public String getMemuid() {
        return this.memuid;
    }

    /**
     * Setter for <code>yx.sys_admin_menu.memuid</code>.
     */
    public void setMemuid(String memuid) {
        this.memuid = memuid;
    }

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

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

        sb.append(id);
        sb.append(", ").append(adminid);
        sb.append(", ").append(memuid);

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