package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;

import javax.annotation.Generated;

public class LmsSetupRecord {
    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.311+01:00", comments="Source field: lms_setup.id")
    private Long id;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.311+01:00", comments="Source field: lms_setup.institution_id")
    private Long institutionId;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.name")
    private String name;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_type")
    private String lmsType;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_url")
    private String lmsUrl;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_clientname")
    private String lmsClientname;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_clientsecret")
    private String lmsClientsecret;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_rest_api_token")
    private String lmsRestApiToken;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_host")
    private String lmsProxyHost;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_port")
    private Integer lmsProxyPort;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_auth_username")
    private String lmsProxyAuthUsername;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_auth_secret")
    private String lmsProxyAuthSecret;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.active")
    private Integer active;

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.311+01:00", comments="Source Table: lms_setup")
    public LmsSetupRecord(Long id, Long institutionId, String name, String lmsType, String lmsUrl, String lmsClientname, String lmsClientsecret, String lmsRestApiToken, String lmsProxyHost, Integer lmsProxyPort, String lmsProxyAuthUsername, String lmsProxyAuthSecret, Integer active) {
        this.id = id;
        this.institutionId = institutionId;
        this.name = name;
        this.lmsType = lmsType;
        this.lmsUrl = lmsUrl;
        this.lmsClientname = lmsClientname;
        this.lmsClientsecret = lmsClientsecret;
        this.lmsRestApiToken = lmsRestApiToken;
        this.lmsProxyHost = lmsProxyHost;
        this.lmsProxyPort = lmsProxyPort;
        this.lmsProxyAuthUsername = lmsProxyAuthUsername;
        this.lmsProxyAuthSecret = lmsProxyAuthSecret;
        this.active = active;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.311+01:00", comments="Source field: lms_setup.id")
    public Long getId() {
        return id;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.institution_id")
    public Long getInstitutionId() {
        return institutionId;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.name")
    public String getName() {
        return name;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_type")
    public String getLmsType() {
        return lmsType;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_url")
    public String getLmsUrl() {
        return lmsUrl;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_clientname")
    public String getLmsClientname() {
        return lmsClientname;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_clientsecret")
    public String getLmsClientsecret() {
        return lmsClientsecret;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_rest_api_token")
    public String getLmsRestApiToken() {
        return lmsRestApiToken;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_host")
    public String getLmsProxyHost() {
        return lmsProxyHost;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_port")
    public Integer getLmsProxyPort() {
        return lmsProxyPort;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_auth_username")
    public String getLmsProxyAuthUsername() {
        return lmsProxyAuthUsername;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.lms_proxy_auth_secret")
    public String getLmsProxyAuthSecret() {
        return lmsProxyAuthSecret;
    }

    @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2021-01-25T18:11:31.312+01:00", comments="Source field: lms_setup.active")
    public Integer getActive() {
        return active;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lms_setup
     *
     * @mbg.generated Mon Jan 25 18:11:31 CET 2021
     */
    @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(", institutionId=").append(institutionId);
        sb.append(", name=").append(name);
        sb.append(", lmsType=").append(lmsType);
        sb.append(", lmsUrl=").append(lmsUrl);
        sb.append(", lmsClientname=").append(lmsClientname);
        sb.append(", lmsClientsecret=").append(lmsClientsecret);
        sb.append(", lmsRestApiToken=").append(lmsRestApiToken);
        sb.append(", lmsProxyHost=").append(lmsProxyHost);
        sb.append(", lmsProxyPort=").append(lmsProxyPort);
        sb.append(", lmsProxyAuthUsername=").append(lmsProxyAuthUsername);
        sb.append(", lmsProxyAuthSecret=").append(lmsProxyAuthSecret);
        sb.append(", active=").append(active);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lms_setup
     *
     * @mbg.generated Mon Jan 25 18:11:31 CET 2021
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LmsSetupRecord other = (LmsSetupRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getInstitutionId() == null ? other.getInstitutionId() == null : this.getInstitutionId().equals(other.getInstitutionId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getLmsType() == null ? other.getLmsType() == null : this.getLmsType().equals(other.getLmsType()))
            && (this.getLmsUrl() == null ? other.getLmsUrl() == null : this.getLmsUrl().equals(other.getLmsUrl()))
            && (this.getLmsClientname() == null ? other.getLmsClientname() == null : this.getLmsClientname().equals(other.getLmsClientname()))
            && (this.getLmsClientsecret() == null ? other.getLmsClientsecret() == null : this.getLmsClientsecret().equals(other.getLmsClientsecret()))
            && (this.getLmsRestApiToken() == null ? other.getLmsRestApiToken() == null : this.getLmsRestApiToken().equals(other.getLmsRestApiToken()))
            && (this.getLmsProxyHost() == null ? other.getLmsProxyHost() == null : this.getLmsProxyHost().equals(other.getLmsProxyHost()))
            && (this.getLmsProxyPort() == null ? other.getLmsProxyPort() == null : this.getLmsProxyPort().equals(other.getLmsProxyPort()))
            && (this.getLmsProxyAuthUsername() == null ? other.getLmsProxyAuthUsername() == null : this.getLmsProxyAuthUsername().equals(other.getLmsProxyAuthUsername()))
            && (this.getLmsProxyAuthSecret() == null ? other.getLmsProxyAuthSecret() == null : this.getLmsProxyAuthSecret().equals(other.getLmsProxyAuthSecret()))
            && (this.getActive() == null ? other.getActive() == null : this.getActive().equals(other.getActive()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table lms_setup
     *
     * @mbg.generated Mon Jan 25 18:11:31 CET 2021
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getInstitutionId() == null) ? 0 : getInstitutionId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getLmsType() == null) ? 0 : getLmsType().hashCode());
        result = prime * result + ((getLmsUrl() == null) ? 0 : getLmsUrl().hashCode());
        result = prime * result + ((getLmsClientname() == null) ? 0 : getLmsClientname().hashCode());
        result = prime * result + ((getLmsClientsecret() == null) ? 0 : getLmsClientsecret().hashCode());
        result = prime * result + ((getLmsRestApiToken() == null) ? 0 : getLmsRestApiToken().hashCode());
        result = prime * result + ((getLmsProxyHost() == null) ? 0 : getLmsProxyHost().hashCode());
        result = prime * result + ((getLmsProxyPort() == null) ? 0 : getLmsProxyPort().hashCode());
        result = prime * result + ((getLmsProxyAuthUsername() == null) ? 0 : getLmsProxyAuthUsername().hashCode());
        result = prime * result + ((getLmsProxyAuthSecret() == null) ? 0 : getLmsProxyAuthSecret().hashCode());
        result = prime * result + ((getActive() == null) ? 0 : getActive().hashCode());
        return result;
    }
}