From 6425753f43ced00648cd5ab1324cfcb53db526d9 Mon Sep 17 00:00:00 2001
From: Jeff Butler
The following methods work the same as the other runtimes and we won't cover them here:
There are no "by example" methods. Instead, there are general purpose methods that allow you to specify a -where clause with a lambda. The generator will create the following general:
+ where clause with a lambda. The generator will create the following general methods:For each introspected table, the generator will generate four Kotlin files:
+For each introspected table, the generator will generate three Kotlin files:
In your code you can import that table object and/or each generated column (Kotlin does not support a star "*" import in this case). With these imports you can refer to the fields -in either a direct or qualified manner - "id" or "TableCode.id".
+in either a direct or qualified manner - "id" or "tableCode.id".The following methods work the same as the other runtimes and we won't cover them here:
There are no "by example" methods. Instead, there are general purpose methods that allow you to specify a -where clause with a lambda. The generator will create the following general:
+where clause with a lambda. The generator will create the following general methods:// import the generated "support" items... -import example.TableCodeDynamicSqlSupport.tableCode import example.TableCodeDynamicSqlSupport.description import example.TableCodeDynamicSqlSupport.id @@ -180,7 +180,6 @@ as well as updates that mimic the old updateByExample and updateByExampleSelecti// import the generated "support" items... -import example.TableCodeDynamicSqlSupport.tableCode import example.TableCodeDynamicSqlSupport.description import example.TableCodeDynamicSqlSupport.id From 26e57e39aae6c8e94281d086708d5c64a19967d3 Mon Sep 17 00:00:00 2001 From: Jeff ButlerDate: Tue, 8 Mar 2022 15:06:56 -0500 Subject: [PATCH 3/3] Update Eclipse Docs --- eclipse/org.mybatis.generator.eclipse.doc/toc_javadoc.xml | 7 +++---- eclipse/org.mybatis.generator.eclipse.doc/toc_mbgdoc.xml | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/eclipse/org.mybatis.generator.eclipse.doc/toc_javadoc.xml b/eclipse/org.mybatis.generator.eclipse.doc/toc_javadoc.xml index a57d678ac9..c90c8fe143 100644 --- a/eclipse/org.mybatis.generator.eclipse.doc/toc_javadoc.xml +++ b/eclipse/org.mybatis.generator.eclipse.doc/toc_javadoc.xml @@ -25,6 +25,8 @@ + + @@ -48,7 +50,6 @@ - @@ -56,8 +57,7 @@ - - + @@ -70,7 +70,6 @@ - diff --git a/eclipse/org.mybatis.generator.eclipse.doc/toc_mbgdoc.xml b/eclipse/org.mybatis.generator.eclipse.doc/toc_mbgdoc.xml index b7915bb9a7..22a6edb38e 100644 --- a/eclipse/org.mybatis.generator.eclipse.doc/toc_mbgdoc.xml +++ b/eclipse/org.mybatis.generator.eclipse.doc/toc_mbgdoc.xml @@ -61,7 +61,7 @@ - + - @@ -70,7 +70,6 @@