【完善】代码生成对 DM 达梦数据的兼容性

This commit is contained in:
YunaiV
2024-04-24 09:35:17 +08:00
parent 0649c315d1
commit fb237fa22e
15 changed files with 0 additions and 38 deletions

View File

@@ -54,7 +54,6 @@ public class CodegenBuilderTest extends BaseMockitoUnitTest {
when(metaInfo.getJdbcType()).thenReturn(JdbcType.BIGINT);
when(tableField.getComment()).thenReturn("编号");
when(tableField.isKeyFlag()).thenReturn(true);
when(tableField.isKeyIdentityFlag()).thenReturn(true);
IColumnType columnType = mock(IColumnType.class);
when(tableField.getColumnType()).thenReturn(columnType);
when(columnType.getType()).thenReturn("Long");
@@ -72,7 +71,6 @@ public class CodegenBuilderTest extends BaseMockitoUnitTest {
assertEquals("编号", column.getColumnComment());
assertFalse(column.getNullable());
assertTrue(column.getPrimaryKey());
assertTrue(column.getAutoIncrement());
assertEquals(1, column.getOrdinalPosition());
assertEquals("Long", column.getJavaType());
assertEquals("id", column.getJavaField());

View File

@@ -18,7 +18,6 @@
"dataType" : "BIGINT",
"columnComment" : "编号",
"primaryKey" : true,
"autoIncrement" : true,
"javaType" : "Long",
"javaField" : "id",
"example" : "1024",

View File

@@ -14,7 +14,6 @@
"dataType" : "BIGINT",
"columnComment" : "编号",
"primaryKey" : true,
"autoIncrement" : true,
"javaType" : "Long",
"javaField" : "id",
"example" : "1024",

View File

@@ -17,7 +17,6 @@
"dataType" : "BIGINT",
"columnComment" : "编号",
"primaryKey" : true,
"autoIncrement" : true,
"javaType" : "Long",
"javaField" : "id",
"example" : "1024",

View File

@@ -14,7 +14,6 @@
"dataType" : "BIGINT",
"columnComment" : "编号",
"primaryKey" : true,
"autoIncrement" : true,
"javaType" : "Long",
"javaField" : "id",
"example" : "1024",

View File

@@ -196,7 +196,6 @@ CREATE TABLE IF NOT EXISTS "infra_codegen_column" (
"column_comment" varchar(500) NOT NULL,
"nullable" tinyint not null,
"primary_key" tinyint not null,
"auto_increment" varchar(5) not null,
"ordinal_position" int not null,
"java_type" varchar(32) NOT NULL,
"java_field" varchar(64) NOT NULL,