in src/main/java/com/datacompare/model/DatabaseInfo.java [42:66]
public DatabaseInfo(String hostName, int port, String database, String service, String userName, String password, boolean sslRequire, dbType type, boolean destination) {
this.hostName = hostName;
this.port = port;
this.database = database;
this.service = service;
this.userName = userName;
this.password = password;
this.sslRequire = sslRequire;
if(type.name().equals("ORACLE") && this.service != null && ("Service".equals(this.service) || "SID".equals(this.service))) {
this.type = dbType.valueOf(dbType.ORACLE.name() + "_" + this.service);
} else if(type.name().equals("POSTGRESQL") && this.sslRequire) {
this.type = dbType.valueOf(dbType.POSTGRESQL.name() + "_SSL");
} else {
this.type = type;
}
this.destination = destination;
}