mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-12 17:21:52 +08:00
【完善】代码生成对 DM 达梦数据的兼容性
This commit is contained in:
@@ -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());
|
||||
|
@@ -18,7 +18,6 @@
|
||||
"dataType" : "BIGINT",
|
||||
"columnComment" : "编号",
|
||||
"primaryKey" : true,
|
||||
"autoIncrement" : true,
|
||||
"javaType" : "Long",
|
||||
"javaField" : "id",
|
||||
"example" : "1024",
|
||||
|
@@ -14,7 +14,6 @@
|
||||
"dataType" : "BIGINT",
|
||||
"columnComment" : "编号",
|
||||
"primaryKey" : true,
|
||||
"autoIncrement" : true,
|
||||
"javaType" : "Long",
|
||||
"javaField" : "id",
|
||||
"example" : "1024",
|
||||
|
@@ -17,7 +17,6 @@
|
||||
"dataType" : "BIGINT",
|
||||
"columnComment" : "编号",
|
||||
"primaryKey" : true,
|
||||
"autoIncrement" : true,
|
||||
"javaType" : "Long",
|
||||
"javaField" : "id",
|
||||
"example" : "1024",
|
||||
|
@@ -14,7 +14,6 @@
|
||||
"dataType" : "BIGINT",
|
||||
"columnComment" : "编号",
|
||||
"primaryKey" : true,
|
||||
"autoIncrement" : true,
|
||||
"javaType" : "Long",
|
||||
"javaField" : "id",
|
||||
"example" : "1024",
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user