package com.ssm.manage.entity;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "sys_business_parameters")
public class SysBusinessParameters implements Serializable {
    /**
     * 主键
     */
    @Id
    private Long id;

    /**
     * 参数取值
     */
    @Column(name = "parameters_values")
    private String parametersValues;

    /**
     * 参数名称
     */
    @Column(name = "parameters_name")
    private String parametersName;

    private static final long serialVersionUID = 1L;

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取参数取值
     *
     * @return parameters_values - 参数取值
     */
    public String getParametersValues() {
        return parametersValues;
    }

    /**
     * 设置参数取值
     *
     * @param parametersValues 参数取值
     */
    public void setParametersValues(String parametersValues) {
        this.parametersValues = parametersValues;
    }

    /**
     * 获取参数名称
     *
     * @return parameters_name - 参数名称
     */
    public String getParametersName() {
        return parametersName;
    }

    /**
     * 设置参数名称
     *
     * @param parametersName 参数名称
     */
    public void setParametersName(String parametersName) {
        this.parametersName = parametersName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysBusinessParameters other = (SysBusinessParameters) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getParametersValues() == null ? other.getParametersValues() == null : this.getParametersValues().equals(other.getParametersValues()))
            && (this.getParametersName() == null ? other.getParametersName() == null : this.getParametersName().equals(other.getParametersName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getParametersValues() == null) ? 0 : getParametersValues().hashCode());
        result = prime * result + ((getParametersName() == null) ? 0 : getParametersName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", parametersValues=").append(parametersValues);
        sb.append(", parametersName=").append(parametersName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}