diff --git a/dao/generated-src/jooq/main/java/com/databasir/dao/tables/DatabaseType.java b/dao/generated-src/jooq/main/java/com/databasir/dao/tables/DatabaseType.java index 504c3c6..514a05e 100644 --- a/dao/generated-src/jooq/main/java/com/databasir/dao/tables/DatabaseType.java +++ b/dao/generated-src/jooq/main/java/com/databasir/dao/tables/DatabaseType.java @@ -7,15 +7,26 @@ package com.databasir.dao.tables; import com.databasir.dao.Databasir; import com.databasir.dao.Keys; import com.databasir.dao.tables.records.DatabaseTypeRecord; -import org.jooq.*; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Row11; +import org.jooq.Schema; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + /** * customer database types @@ -60,9 +71,9 @@ public class DatabaseType extends TableImpl { public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(512).nullable(false), this, ""); /** - * The column databasir.database_type.jdbc_driver_file. + * The column databasir.database_type.jdbc_driver_file_url. */ - public final TableField JDBC_DRIVER_FILE = createField(DSL.name("jdbc_driver_file"), SQLDataType.VARCHAR(1024).nullable(false), this, ""); + public final TableField JDBC_DRIVER_FILE_URL = createField(DSL.name("jdbc_driver_file_url"), SQLDataType.VARCHAR(1024).nullable(false), this, ""); /** * The column databasir.database_type.jdbc_driver_class_name. diff --git a/dao/generated-src/jooq/main/java/com/databasir/dao/tables/pojos/DatabaseTypePojo.java b/dao/generated-src/jooq/main/java/com/databasir/dao/tables/pojos/DatabaseTypePojo.java index 784bbff..9797d78 100644 --- a/dao/generated-src/jooq/main/java/com/databasir/dao/tables/pojos/DatabaseTypePojo.java +++ b/dao/generated-src/jooq/main/java/com/databasir/dao/tables/pojos/DatabaseTypePojo.java @@ -20,7 +20,7 @@ public class DatabaseTypePojo implements Serializable { private String databaseType; private String icon; private String description; - private String jdbcDriverFile; + private String jdbcDriverFileUrl; private String jdbcDriverClassName; private String jdbcProtocol; private Boolean deleted; @@ -35,7 +35,7 @@ public class DatabaseTypePojo implements Serializable { this.databaseType = value.databaseType; this.icon = value.icon; this.description = value.description; - this.jdbcDriverFile = value.jdbcDriverFile; + this.jdbcDriverFileUrl = value.jdbcDriverFileUrl; this.jdbcDriverClassName = value.jdbcDriverClassName; this.jdbcProtocol = value.jdbcProtocol; this.deleted = value.deleted; @@ -49,7 +49,7 @@ public class DatabaseTypePojo implements Serializable { String databaseType, String icon, String description, - String jdbcDriverFile, + String jdbcDriverFileUrl, String jdbcDriverClassName, String jdbcProtocol, Boolean deleted, @@ -61,7 +61,7 @@ public class DatabaseTypePojo implements Serializable { this.databaseType = databaseType; this.icon = icon; this.description = description; - this.jdbcDriverFile = jdbcDriverFile; + this.jdbcDriverFileUrl = jdbcDriverFileUrl; this.jdbcDriverClassName = jdbcDriverClassName; this.jdbcProtocol = jdbcProtocol; this.deleted = deleted; @@ -129,17 +129,17 @@ public class DatabaseTypePojo implements Serializable { } /** - * Getter for databasir.database_type.jdbc_driver_file. + * Getter for databasir.database_type.jdbc_driver_file_url. */ - public String getJdbcDriverFile() { - return this.jdbcDriverFile; + public String getJdbcDriverFileUrl() { + return this.jdbcDriverFileUrl; } /** - * Setter for databasir.database_type.jdbc_driver_file. + * Setter for databasir.database_type.jdbc_driver_file_url. */ - public void setJdbcDriverFile(String jdbcDriverFile) { - this.jdbcDriverFile = jdbcDriverFile; + public void setJdbcDriverFileUrl(String jdbcDriverFileUrl) { + this.jdbcDriverFileUrl = jdbcDriverFileUrl; } /** @@ -234,7 +234,7 @@ public class DatabaseTypePojo implements Serializable { sb.append(", ").append(databaseType); sb.append(", ").append(icon); sb.append(", ").append(description); - sb.append(", ").append(jdbcDriverFile); + sb.append(", ").append(jdbcDriverFileUrl); sb.append(", ").append(jdbcDriverClassName); sb.append(", ").append(jdbcProtocol); sb.append(", ").append(deleted); diff --git a/dao/generated-src/jooq/main/java/com/databasir/dao/tables/records/DatabaseTypeRecord.java b/dao/generated-src/jooq/main/java/com/databasir/dao/tables/records/DatabaseTypeRecord.java index f92911a..7728124 100644 --- a/dao/generated-src/jooq/main/java/com/databasir/dao/tables/records/DatabaseTypeRecord.java +++ b/dao/generated-src/jooq/main/java/com/databasir/dao/tables/records/DatabaseTypeRecord.java @@ -83,16 +83,16 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl } /** - * Setter for databasir.database_type.jdbc_driver_file. + * Setter for databasir.database_type.jdbc_driver_file_url. */ - public void setJdbcDriverFile(String value) { + public void setJdbcDriverFileUrl(String value) { set(4, value); } /** - * Getter for databasir.database_type.jdbc_driver_file. + * Getter for databasir.database_type.jdbc_driver_file_url. */ - public String getJdbcDriverFile() { + public String getJdbcDriverFileUrl() { return (String) get(4); } @@ -225,7 +225,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl @Override public Field field5() { - return DatabaseType.DATABASE_TYPE.JDBC_DRIVER_FILE; + return DatabaseType.DATABASE_TYPE.JDBC_DRIVER_FILE_URL; } @Override @@ -280,7 +280,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl @Override public String component5() { - return getJdbcDriverFile(); + return getJdbcDriverFileUrl(); } @Override @@ -335,7 +335,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl @Override public String value5() { - return getJdbcDriverFile(); + return getJdbcDriverFileUrl(); } @Override @@ -394,7 +394,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl @Override public DatabaseTypeRecord value5(String value) { - setJdbcDriverFile(value); + setJdbcDriverFileUrl(value); return this; } @@ -464,14 +464,14 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl /** * Create a detached, initialised DatabaseTypeRecord */ - public DatabaseTypeRecord(Integer id, String databaseType, String icon, String description, String jdbcDriverFile, String jdbcDriverClassName, String jdbcProtocol, Boolean deleted, Integer deletedToken, LocalDateTime updateAt, LocalDateTime createAt) { + public DatabaseTypeRecord(Integer id, String databaseType, String icon, String description, String jdbcDriverFileUrl, String jdbcDriverClassName, String jdbcProtocol, Boolean deleted, Integer deletedToken, LocalDateTime updateAt, LocalDateTime createAt) { super(DatabaseType.DATABASE_TYPE); setId(id); setDatabaseType(databaseType); setIcon(icon); setDescription(description); - setJdbcDriverFile(jdbcDriverFile); + setJdbcDriverFileUrl(jdbcDriverFileUrl); setJdbcDriverClassName(jdbcDriverClassName); setJdbcProtocol(jdbcProtocol); setDeleted(deleted); @@ -491,7 +491,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl setDatabaseType(value.getDatabaseType()); setIcon(value.getIcon()); setDescription(value.getDescription()); - setJdbcDriverFile(value.getJdbcDriverFile()); + setJdbcDriverFileUrl(value.getJdbcDriverFileUrl()); setJdbcDriverClassName(value.getJdbcDriverClassName()); setJdbcProtocol(value.getJdbcProtocol()); setDeleted(value.getDeleted()); diff --git a/dao/src/main/resources/db/migration/V1.1__database_type.sql b/dao/src/main/resources/db/migration/V1.1__database_type.sql index 23b7929..363a0bb 100644 --- a/dao/src/main/resources/db/migration/V1.1__database_type.sql +++ b/dao/src/main/resources/db/migration/V1.1__database_type.sql @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS database_type database_type VARCHAR(128) NOT NULL COMMENT 'such as mysql, postgresql, mysql5.5 and so on', icon VARCHAR(512) NOT NULL DEFAULT '', description VARCHAR(512) NOT NULL, - jdbc_driver_file VARCHAR(1024) NOT NULL, + jdbc_driver_file_url VARCHAR(1024) NOT NULL, jdbc_driver_class_name VARCHAR(255) NOT NULL, jdbc_protocol VARCHAR(128) NOT NULL, deleted BOOLEAN NOT NULL DEFAULT FALSE,