Browse Source

feat: change model name

master
vran 3 years ago
parent
commit
91c3b0184d
  1. 23
      dao/generated-src/jooq/main/java/com/databasir/dao/tables/DatabaseType.java
  2. 22
      dao/generated-src/jooq/main/java/com/databasir/dao/tables/pojos/DatabaseTypePojo.java
  3. 22
      dao/generated-src/jooq/main/java/com/databasir/dao/tables/records/DatabaseTypeRecord.java
  4. 2
      dao/src/main/resources/db/migration/V1.1__database_type.sql

23
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.Databasir;
import com.databasir.dao.Keys; import com.databasir.dao.Keys;
import com.databasir.dao.tables.records.DatabaseTypeRecord; 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.time.LocalDateTime;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; 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 * customer database types
@ -60,9 +71,9 @@ public class DatabaseType extends TableImpl<DatabaseTypeRecord> {
public final TableField<DatabaseTypeRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(512).nullable(false), this, ""); public final TableField<DatabaseTypeRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(512).nullable(false), this, "");
/** /**
* The column <code>databasir.database_type.jdbc_driver_file</code>. * The column <code>databasir.database_type.jdbc_driver_file_url</code>.
*/ */
public final TableField<DatabaseTypeRecord, String> JDBC_DRIVER_FILE = createField(DSL.name("jdbc_driver_file"), SQLDataType.VARCHAR(1024).nullable(false), this, ""); public final TableField<DatabaseTypeRecord, String> JDBC_DRIVER_FILE_URL = createField(DSL.name("jdbc_driver_file_url"), SQLDataType.VARCHAR(1024).nullable(false), this, "");
/** /**
* The column <code>databasir.database_type.jdbc_driver_class_name</code>. * The column <code>databasir.database_type.jdbc_driver_class_name</code>.

22
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 databaseType;
private String icon; private String icon;
private String description; private String description;
private String jdbcDriverFile; private String jdbcDriverFileUrl;
private String jdbcDriverClassName; private String jdbcDriverClassName;
private String jdbcProtocol; private String jdbcProtocol;
private Boolean deleted; private Boolean deleted;
@ -35,7 +35,7 @@ public class DatabaseTypePojo implements Serializable {
this.databaseType = value.databaseType; this.databaseType = value.databaseType;
this.icon = value.icon; this.icon = value.icon;
this.description = value.description; this.description = value.description;
this.jdbcDriverFile = value.jdbcDriverFile; this.jdbcDriverFileUrl = value.jdbcDriverFileUrl;
this.jdbcDriverClassName = value.jdbcDriverClassName; this.jdbcDriverClassName = value.jdbcDriverClassName;
this.jdbcProtocol = value.jdbcProtocol; this.jdbcProtocol = value.jdbcProtocol;
this.deleted = value.deleted; this.deleted = value.deleted;
@ -49,7 +49,7 @@ public class DatabaseTypePojo implements Serializable {
String databaseType, String databaseType,
String icon, String icon,
String description, String description,
String jdbcDriverFile, String jdbcDriverFileUrl,
String jdbcDriverClassName, String jdbcDriverClassName,
String jdbcProtocol, String jdbcProtocol,
Boolean deleted, Boolean deleted,
@ -61,7 +61,7 @@ public class DatabaseTypePojo implements Serializable {
this.databaseType = databaseType; this.databaseType = databaseType;
this.icon = icon; this.icon = icon;
this.description = description; this.description = description;
this.jdbcDriverFile = jdbcDriverFile; this.jdbcDriverFileUrl = jdbcDriverFileUrl;
this.jdbcDriverClassName = jdbcDriverClassName; this.jdbcDriverClassName = jdbcDriverClassName;
this.jdbcProtocol = jdbcProtocol; this.jdbcProtocol = jdbcProtocol;
this.deleted = deleted; this.deleted = deleted;
@ -129,17 +129,17 @@ public class DatabaseTypePojo implements Serializable {
} }
/** /**
* Getter for <code>databasir.database_type.jdbc_driver_file</code>. * Getter for <code>databasir.database_type.jdbc_driver_file_url</code>.
*/ */
public String getJdbcDriverFile() { public String getJdbcDriverFileUrl() {
return this.jdbcDriverFile; return this.jdbcDriverFileUrl;
} }
/** /**
* Setter for <code>databasir.database_type.jdbc_driver_file</code>. * Setter for <code>databasir.database_type.jdbc_driver_file_url</code>.
*/ */
public void setJdbcDriverFile(String jdbcDriverFile) { public void setJdbcDriverFileUrl(String jdbcDriverFileUrl) {
this.jdbcDriverFile = jdbcDriverFile; this.jdbcDriverFileUrl = jdbcDriverFileUrl;
} }
/** /**
@ -234,7 +234,7 @@ public class DatabaseTypePojo implements Serializable {
sb.append(", ").append(databaseType); sb.append(", ").append(databaseType);
sb.append(", ").append(icon); sb.append(", ").append(icon);
sb.append(", ").append(description); sb.append(", ").append(description);
sb.append(", ").append(jdbcDriverFile); sb.append(", ").append(jdbcDriverFileUrl);
sb.append(", ").append(jdbcDriverClassName); sb.append(", ").append(jdbcDriverClassName);
sb.append(", ").append(jdbcProtocol); sb.append(", ").append(jdbcProtocol);
sb.append(", ").append(deleted); sb.append(", ").append(deleted);

22
dao/generated-src/jooq/main/java/com/databasir/dao/tables/records/DatabaseTypeRecord.java

@ -83,16 +83,16 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl<DatabaseTypeRecord>
} }
/** /**
* Setter for <code>databasir.database_type.jdbc_driver_file</code>. * Setter for <code>databasir.database_type.jdbc_driver_file_url</code>.
*/ */
public void setJdbcDriverFile(String value) { public void setJdbcDriverFileUrl(String value) {
set(4, value); set(4, value);
} }
/** /**
* Getter for <code>databasir.database_type.jdbc_driver_file</code>. * Getter for <code>databasir.database_type.jdbc_driver_file_url</code>.
*/ */
public String getJdbcDriverFile() { public String getJdbcDriverFileUrl() {
return (String) get(4); return (String) get(4);
} }
@ -225,7 +225,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl<DatabaseTypeRecord>
@Override @Override
public Field<String> field5() { public Field<String> field5() {
return DatabaseType.DATABASE_TYPE.JDBC_DRIVER_FILE; return DatabaseType.DATABASE_TYPE.JDBC_DRIVER_FILE_URL;
} }
@Override @Override
@ -280,7 +280,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl<DatabaseTypeRecord>
@Override @Override
public String component5() { public String component5() {
return getJdbcDriverFile(); return getJdbcDriverFileUrl();
} }
@Override @Override
@ -335,7 +335,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl<DatabaseTypeRecord>
@Override @Override
public String value5() { public String value5() {
return getJdbcDriverFile(); return getJdbcDriverFileUrl();
} }
@Override @Override
@ -394,7 +394,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl<DatabaseTypeRecord>
@Override @Override
public DatabaseTypeRecord value5(String value) { public DatabaseTypeRecord value5(String value) {
setJdbcDriverFile(value); setJdbcDriverFileUrl(value);
return this; return this;
} }
@ -464,14 +464,14 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl<DatabaseTypeRecord>
/** /**
* Create a detached, initialised DatabaseTypeRecord * 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); super(DatabaseType.DATABASE_TYPE);
setId(id); setId(id);
setDatabaseType(databaseType); setDatabaseType(databaseType);
setIcon(icon); setIcon(icon);
setDescription(description); setDescription(description);
setJdbcDriverFile(jdbcDriverFile); setJdbcDriverFileUrl(jdbcDriverFileUrl);
setJdbcDriverClassName(jdbcDriverClassName); setJdbcDriverClassName(jdbcDriverClassName);
setJdbcProtocol(jdbcProtocol); setJdbcProtocol(jdbcProtocol);
setDeleted(deleted); setDeleted(deleted);
@ -491,7 +491,7 @@ public class DatabaseTypeRecord extends UpdatableRecordImpl<DatabaseTypeRecord>
setDatabaseType(value.getDatabaseType()); setDatabaseType(value.getDatabaseType());
setIcon(value.getIcon()); setIcon(value.getIcon());
setDescription(value.getDescription()); setDescription(value.getDescription());
setJdbcDriverFile(value.getJdbcDriverFile()); setJdbcDriverFileUrl(value.getJdbcDriverFileUrl());
setJdbcDriverClassName(value.getJdbcDriverClassName()); setJdbcDriverClassName(value.getJdbcDriverClassName());
setJdbcProtocol(value.getJdbcProtocol()); setJdbcProtocol(value.getJdbcProtocol());
setDeleted(value.getDeleted()); setDeleted(value.getDeleted());

2
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', database_type VARCHAR(128) NOT NULL COMMENT 'such as mysql, postgresql, mysql5.5 and so on',
icon VARCHAR(512) NOT NULL DEFAULT '', icon VARCHAR(512) NOT NULL DEFAULT '',
description VARCHAR(512) NOT NULL, 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_driver_class_name VARCHAR(255) NOT NULL,
jdbc_protocol VARCHAR(128) NOT NULL, jdbc_protocol VARCHAR(128) NOT NULL,
deleted BOOLEAN NOT NULL DEFAULT FALSE, deleted BOOLEAN NOT NULL DEFAULT FALSE,

Loading…
Cancel
Save