All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.develop.model.entity.DataSourceEntity Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.develop.model.entity;

import org.zodiac.mybatisplus.base.BaseEntity;

/**
 * 数据源配置表实体类。
 *
 */
//@TableName(value = "t_platform_datasource")
public class DataSourceEntity extends BaseEntity {

    private static final long serialVersionUID = 199297171889514115L;

    /*
     * 名称
     */
    private String name;
    /*
     * 驱动类
     */
    private String driverClass;
    /*
     * 连接地址
     */
    private String url;
    /*
     * 用户名
     */
    private String username;
    /*
     * 密码
     */
    private String password;
    /*
     * 备注
     */
    private String remark;

    public DataSourceEntity() {
        super();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = super.hashCode();
        result = prime * result + ((driverClass == null) ? 0 : driverClass.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        result = prime * result + ((password == null) ? 0 : password.hashCode());
        result = prime * result + ((remark == null) ? 0 : remark.hashCode());
        result = prime * result + ((url == null) ? 0 : url.hashCode());
        result = prime * result + ((username == null) ? 0 : username.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (!super.equals(obj))
            return false;
        if (getClass() != obj.getClass())
            return false;
        DataSourceEntity other = (DataSourceEntity)obj;
        if (driverClass == null) {
            if (other.driverClass != null)
                return false;
        } else if (!driverClass.equals(other.driverClass))
            return false;
        if (name == null) {
            if (other.name != null)
                return false;
        } else if (!name.equals(other.name))
            return false;
        if (password == null) {
            if (other.password != null)
                return false;
        } else if (!password.equals(other.password))
            return false;
        if (remark == null) {
            if (other.remark != null)
                return false;
        } else if (!remark.equals(other.remark))
            return false;
        if (url == null) {
            if (other.url != null)
                return false;
        } else if (!url.equals(other.url))
            return false;
        if (username == null) {
            if (other.username != null)
                return false;
        } else if (!username.equals(other.username))
            return false;
        return true;
    }

    @Override
    public String toString() {
        return "DatasourceEntity [name=" + name + ", driverClass=" + driverClass + ", url=" + url + ", username="
            + username + ", password=" + password + ", remark=" + remark + "]";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy