forked from zouzg/mybatis-generator-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
196 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 82 additions & 63 deletions
145
src/main/java/com/zzg/mybatis/generator/model/DatabaseConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,114 @@ | ||
package com.zzg.mybatis.generator.model; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* Created by Owen on 5/13/16. | ||
*/ | ||
public class DatabaseConfig { | ||
|
||
private String dbType; | ||
/** | ||
* The name of the config | ||
*/ | ||
private String name; | ||
private String dbType; | ||
/** | ||
* The name of the config | ||
*/ | ||
private String name; | ||
|
||
private String host; | ||
|
||
private String host; | ||
private String port; | ||
|
||
private String port; | ||
private String schema; | ||
|
||
private String schema; | ||
private String username; | ||
|
||
private String username; | ||
private String password; | ||
|
||
private String password; | ||
private String encoding; | ||
|
||
private String encoding; | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
public String getHost() { | ||
return host; | ||
} | ||
|
||
public String getHost() { | ||
return host; | ||
} | ||
public void setHost(String host) { | ||
this.host = host; | ||
} | ||
|
||
public void setHost(String host) { | ||
this.host = host; | ||
} | ||
public String getPort() { | ||
return port; | ||
} | ||
|
||
public String getPort() { | ||
return port; | ||
} | ||
public void setPort(String port) { | ||
this.port = port; | ||
} | ||
|
||
public void setPort(String port) { | ||
this.port = port; | ||
} | ||
public String getSchema() { | ||
return schema; | ||
} | ||
|
||
public String getSchema() { | ||
return schema; | ||
} | ||
public void setSchema(String schema) { | ||
this.schema = schema; | ||
} | ||
|
||
public void setSchema(String schema) { | ||
this.schema = schema; | ||
} | ||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
|
||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
public String getPassword() { | ||
return password; | ||
} | ||
|
||
public String getPassword() { | ||
return password; | ||
} | ||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
|
||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
public String getEncoding() { | ||
return encoding; | ||
} | ||
|
||
public String getEncoding() { | ||
return encoding; | ||
} | ||
public void setEncoding(String encoding) { | ||
this.encoding = encoding; | ||
} | ||
|
||
public void setEncoding(String encoding) { | ||
this.encoding = encoding; | ||
} | ||
public String getDbType() { | ||
return dbType; | ||
} | ||
|
||
public String getDbType() { | ||
return dbType; | ||
} | ||
public void setDbType(String dbType) { | ||
this.dbType = dbType; | ||
} | ||
|
||
public void setDbType(String dbType) { | ||
this.dbType = dbType; | ||
} | ||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
DatabaseConfig that = (DatabaseConfig) o; | ||
return Objects.equals(dbType, that.dbType) && Objects.equals(name, that.name) && Objects.equals(host, that | ||
.host) && Objects.equals(port, that.port) && Objects.equals(schema, that.schema) && Objects.equals | ||
(username, that.username) && Objects.equals(password, that.password) && Objects.equals(encoding, that | ||
.encoding); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return name; | ||
} | ||
@Override | ||
public int hashCode() { | ||
return Objects.hash(dbType, name, host, port, schema, username, password, encoding); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "DatabaseConfig{" + "dbType='" + dbType + '\'' + ", name='" + name + '\'' + ", host='" + host + '\'' + | ||
", port='" + port + '\'' + ", schema='" + schema + '\'' + ", username='" + username + '\'' + ", " + | ||
"password='" + password + '\'' + ", encoding='" + encoding + '\'' + '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.