diff --git a/core/mybatis-generator-core/src/site/xhtml/configreference/columnOverride.xhtml b/core/mybatis-generator-core/src/site/xhtml/configreference/columnOverride.xhtml index bd2dfe05c1..00de638449 100644 --- a/core/mybatis-generator-core/src/site/xhtml/configreference/columnOverride.xhtml +++ b/core/mybatis-generator-core/src/site/xhtml/configreference/columnOverride.xhtml @@ -78,7 +78,7 @@ element of the <table> element.
TypeHandler
+ TypeHandler
interface.
If unspecified, or blank,
then MyBatis will use the default type facility for handling types.
diff --git a/core/mybatis-generator-core/src/site/xhtml/configreference/commentGenerator.xhtml b/core/mybatis-generator-core/src/site/xhtml/configreference/commentGenerator.xhtml
index 4293fad0c1..565cadfc9f 100644
--- a/core/mybatis-generator-core/src/site/xhtml/configreference/commentGenerator.xhtml
+++ b/core/mybatis-generator-core/src/site/xhtml/configreference/commentGenerator.xhtml
@@ -149,7 +149,7 @@ specified with the <property> child element:
java.text.SimpleDateFormat
object. Any
+ will be used to construct a java.text.SimpleDateFormat
object. Any
valid format string for that object can be specified here. By default, the date string
will be from the toString()
method on java.util.Date
.
Since 1.3.4
diff --git a/core/mybatis-generator-core/src/site/xhtml/configreference/context.xhtml b/core/mybatis-generator-core/src/site/xhtml/configreference/context.xhtml index ec23c8667c..3331ca8899 100644 --- a/core/mybatis-generator-core/src/site/xhtml/configreference/context.xhtml +++ b/core/mybatis-generator-core/src/site/xhtml/configreference/context.xhtml @@ -99,7 +99,7 @@ databases, or with different generation parameters, in the same run of MyBatis G with MyBatis versions 3.4.2 and higher, and Java 8 and higher (e.g. the Java model and mapper interfaces will use generic types and other Java 8 features like default methods in interfaces). -Important: The Java code generated with this target runtime is dependent on the +
Important: The Java code generated with this target runtime is dependent on the "MyBatis Dynamic SQL" support library version 1.1.3 or higher.
Other important information:
Important: The Kotlin code generated with this target runtime is dependent on the +
Important: The Kotlin code generated with this target runtime is dependent on the "MyBatis Dynamic SQL" support library version 1.1.4 or higher.
Other important information:
The <except> element is used to specify an exception to a set of columns -that are ignored by a regular expression in a +that are ignored by a regular expression in a <ignoreColumnsByRegex> element. This allows you to specify a very general regular expression to ignore a large set of columns, then add columns back into the set of columns used for code generation.
For example, if you specify a regular
-expression like ".*
" then MBG will ignore every column in a table.
+expression like ".*
" then MBG will ignore every column in a table.
But if you add exceptions, you can add a few columns back.
This element is an optional child
element of the <ignoreColumnsByRegex> element.
The <ignoreColumnsByRegex> element is used to tell MyBatis Generator (MBG) to ignore a
-set of columns in an introspected table - the set is determined by matching against a regular
+set of columns in an introspected table - the set is determined by matching against a regular
expression specified in this element. No generated SQL will refer to the ignored columns, and no
properties will be generated for the ignored columns in the model objects.
This element is an optional child
diff --git a/core/mybatis-generator-core/src/site/xhtml/configreference/javaModelGenerator.xhtml b/core/mybatis-generator-core/src/site/xhtml/configreference/javaModelGenerator.xhtml
index 8db0d0d18c..d38bc2492e 100644
--- a/core/mybatis-generator-core/src/site/xhtml/configreference/javaModelGenerator.xhtml
+++ b/core/mybatis-generator-core/src/site/xhtml/configreference/javaModelGenerator.xhtml
@@ -158,8 +158,8 @@ specified with the <property> child element:
the white space from character fields returned from the database.
This can be useful if your database stores data in CHAR fields rather than
VARCHAR fields. When true, MyBatis Generator will insert code to trim character fields.
- Can be overridden with the trimStrings
property in a
- <table> or
+ Can be overridden with the trimStrings
property in a
+ <table> or
<columnOverride> element.
The default value is false.
This property is ignored if the target runtime is "MyBatis3Kotlin"
trimStrings
property in a <columnOverride>
- configuration. This property value overrides the property if specified at the
+ Can be overridden with the trimStrings
property in a <columnOverride>
+ configuration. This property value overrides the property if specified at the
<javaModelGenerator> level
- and can be overridden for fields/columns using the property in a
+ and can be overridden for fields/columns using the property in a
<columnOverride> element.
- The default value is inherited from the +
The default value is inherited from the <javaModelGenerator>, otherwise false.
It is far more interesting to add WHERE clauses to these methods. To add support for WHERE clauses, you should import the +
It is far more interesting to add WHERE clauses to these methods. To add support for WHERE clauses, you should import the elements from the support class as shown above, and you should also import the SqlBuilder support. Then you can code arbitrarily complex where clauses, and "ORDER BY" phrases as shown below:
@@ -168,7 +168,7 @@ class SomeService { } or { description isLike "b%" } orderBy(id.descending()) - } + } ... } } diff --git a/core/mybatis-generator-core/src/site/xhtml/running/running.xhtml b/core/mybatis-generator-core/src/site/xhtml/running/running.xhtml index 7974eb157a..757fba3d78 100644 --- a/core/mybatis-generator-core/src/site/xhtml/running/running.xhtml +++ b/core/mybatis-generator-core/src/site/xhtml/running/running.xhtml @@ -34,7 +34,7 @@Each method is described in detail on the linked pages.
Note: there is also an Eclipse
diff --git a/core/mybatis-generator-core/src/site/xhtml/running/runningWithMaven.xhtml b/core/mybatis-generator-core/src/site/xhtml/running/runningWithMaven.xhtml
index 74a2ae94d4..e333a9754e 100644
--- a/core/mybatis-generator-core/src/site/xhtml/running/runningWithMaven.xhtml
+++ b/core/mybatis-generator-core/src/site/xhtml/running/runningWithMaven.xhtml
@@ -147,7 +147,7 @@ syntax ${dao.target.dir}
.
Initially, the plugin classpath is very limited - it only contains MyBatis generator itself. -If you need to add something to the plugin's classpath (for example, a JDBC driver), you can do it +If you need to add something to the plugin's classpath (for example, a JDBC driver), you can do it by adding dependencies to the plugin configuration like this:
<project ...> @@ -316,7 +316,7 @@ use one of the configuration parameters related to the plugin classpath - "incluincludeCompileDependencies ${mybatis.generator.includeCompileDependencies} boolean -If true, then dependencies with scope "compile", "provided", and "system" will be + If true, then dependencies with scope "compile", "provided", and "system" will be added to the generator's classpath.
MyBatis generator supports Kotlin! There is a new simple DOM for generating Kotlin. There is also a new runtime that will generate Kotlin code that uses the MyBatis Dynamic SQL library. It has functionality that matches the new Java runtime for MyBatis Dynamic SQL (see below) - but it uses a more idiomatic Kotlin style with receiver functions rather than the -method chaining style of the Java runtime. +method chaining style of the Java runtime.
To use the new runtime, set targetRuntime=MyBatis3Kotlin
on a <context>
.
Method
and Field
CompilationUnit
including isJavaInterface
,
isJavaEnumeration
, getSuperClass
, and getSuperInterfaceTypes
.getFormattedContent
method from all Java and XML DOM classes. These methods
are replaced by a new set of renderer classes. Note that the new renderer classes will produce
@@ -275,7 +275,7 @@ deprecated and will be removed in a future version - so please switch to the
This version contains several minor fixes and enhancements - mostly related to the MyBatis3DynamicSql runtime.
-Please reference the GitHub page for milestone 1.3.7 for details. +
Please reference the GitHub page for milestone 1.3.7 for details. Milestone 1.3.7
@@ -287,7 +287,7 @@ From the first release of MyBatis Generator, the generator has created code that has been limited and difficult to use. The new style of generated code supports a more natural SQL-like syntax for WHERE clauses. Additionally, WHERE clauses can be created with any combination of ANDs and ORs. This is a significant improvement to the generated code. It comes at the cost of dependency on MyBatis Dynamic SQL, and loss of compatibility with previously generated code, but we -think it will be worth the change. One other benefit is that the generated code is significantly smaller and easier to understand. +think it will be worth the change. One other benefit is that the generated code is significantly smaller and easier to understand.Don't worry - unless you enable this change, then generator will create code exactly as it has in the past.
To enable the change, use the new "MyBatis3DynamicSQL" runtime on the @@ -304,14 +304,14 @@ think it will be worth the change. One other benefit is that the generated code
Please reference the GitHub page for milestone 1.3.6 for details on what else -has changed in this release. +has changed in this release. Milestone 1.3.6
Please reference the GitHub page for milestone 1.3.5 for details on what -has changed in this release. +has changed in this release. Milestone 1.3.5
@@ -324,7 +324,7 @@ menu item.Please reference the GitHub page for milestone 1.3.4 for details on what -has changed in this release. +has changed in this release. Milestone 1.3.4
@@ -335,7 +335,7 @@ has changed in this release.Please reference the GitHub page for milestone 1.3.3 for details on what -has changed in this release. +has changed in this release. Milestone 1.3.3