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


import java.io.Serializable;
import java.time.LocalDateTime;


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

    private static final long serialVersionUID = 1L;

    private String id;
    private String subgroup;
    private String k;
    private String val;
    private String adminId;
    private String adminname;
    private LocalDateTime edittime;

    public SysConfig() {}

    public SysConfig(SysConfig value) {
        this.id = value.id;
        this.subgroup = value.subgroup;
        this.k = value.k;
        this.val = value.val;
        this.adminId = value.adminId;
        this.adminname = value.adminname;
        this.edittime = value.edittime;
    }

    public SysConfig(
        String id,
        String subgroup,
        String k,
        String val,
        String adminId,
        String adminname,
        LocalDateTime edittime
    ) {
        this.id = id;
        this.subgroup = subgroup;
        this.k = k;
        this.val = val;
        this.adminId = adminId;
        this.adminname = adminname;
        this.edittime = edittime;
    }

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

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

    /**
     * Getter for <code>yx.sys_config.subgroup</code>. 分组
     */
    public String getSubgroup() {
        return this.subgroup;
    }

    /**
     * Setter for <code>yx.sys_config.subgroup</code>. 分组
     */
    public void setSubgroup(String subgroup) {
        this.subgroup = subgroup;
    }

    /**
     * Getter for <code>yx.sys_config.k</code>. 键
     */
    public String getK() {
        return this.k;
    }

    /**
     * Setter for <code>yx.sys_config.k</code>. 键
     */
    public void setK(String k) {
        this.k = k;
    }

    /**
     * Getter for <code>yx.sys_config.val</code>. 值
     */
    public String getVal() {
        return this.val;
    }

    /**
     * Setter for <code>yx.sys_config.val</code>. 值
     */
    public void setVal(String val) {
        this.val = val;
    }

    /**
     * Getter for <code>yx.sys_config.admin_id</code>. 管理员id
     */
    public String getAdminId() {
        return this.adminId;
    }

    /**
     * Setter for <code>yx.sys_config.admin_id</code>. 管理员id
     */
    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    /**
     * Getter for <code>yx.sys_config.adminname</code>. 管理员名称
     */
    public String getAdminname() {
        return this.adminname;
    }

    /**
     * Setter for <code>yx.sys_config.adminname</code>. 管理员名称
     */
    public void setAdminname(String adminname) {
        this.adminname = adminname;
    }

    /**
     * Getter for <code>yx.sys_config.edittime</code>. 最后编辑时间
     */
    public LocalDateTime getEdittime() {
        return this.edittime;
    }

    /**
     * Setter for <code>yx.sys_config.edittime</code>. 最后编辑时间
     */
    public void setEdittime(LocalDateTime edittime) {
        this.edittime = edittime;
    }

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

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

        sb.append(id);
        sb.append(", ").append(subgroup);
        sb.append(", ").append(k);
        sb.append(", ").append(val);
        sb.append(", ").append(adminId);
        sb.append(", ").append(adminname);
        sb.append(", ").append(edittime);

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