From 11b34ab8d3d02b7957068607aea875c1622bbe1d Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Sat, 2 Mar 2024 11:04:26 +0800 Subject: [PATCH] build: v1.8.1 release (^.^)YYa!! --- .gitee/ISSUE_TEMPLATE/bug.yml | 2 +- .gitee/ISSUE_TEMPLATE/question.yml | 2 +- changes.md | 22 ++++++++++++++++++++++ docs/zh/changes.md | 22 ++++++++++++++++++++++ docs/zh/intro/getting-started.md | 4 ++-- docs/zh/intro/gradle.md | 16 ++++++++-------- docs/zh/intro/maven.md | 18 +++++++++--------- docs/zh/others/apt.md | 2 +- docs/zh/others/codegen.md | 2 +- pom.xml | 4 ++-- 10 files changed, 69 insertions(+), 25 deletions(-) diff --git a/.gitee/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml index 078a54e7..a861c24e 100644 --- a/.gitee/ISSUE_TEMPLATE/bug.yml +++ b/.gitee/ISSUE_TEMPLATE/bug.yml @@ -7,7 +7,7 @@ body: attributes: label: 这个 Bug 是否已经存在: options: - - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.0,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.1,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) required: true - type: textarea attributes: diff --git a/.gitee/ISSUE_TEMPLATE/question.yml b/.gitee/ISSUE_TEMPLATE/question.yml index 60d6d787..2bd405b8 100644 --- a/.gitee/ISSUE_TEMPLATE/question.yml +++ b/.gitee/ISSUE_TEMPLATE/question.yml @@ -13,7 +13,7 @@ body: attributes: label: 这个问题是否已经存在: options: - - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.0,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.1,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) required: true - type: textarea id: question-description diff --git a/changes.md b/changes.md index cfeeb367..bf043db8 100644 --- a/changes.md +++ b/changes.md @@ -2,6 +2,28 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 + +## v1.8.1 20240302: +- 新增:添加 CommaSplitTypeHandler 用于对逗号分割存储映射到实体类 `List` 的支持 +- 新增:代码生成器 EntityConfig 添加 superClassFactory 配置的支持 +- 优化:重构代码生成器模块的 JdbcTypeMapper,以支持更多的参数读取 +- 优化:FlexTransactionAutoConfiguration 添加更多的 AutoConfigureBefore 设置,感谢 @wittplus #I930JB +- 优化:优化 EntityGenerator.java 的相关输出日志 +- 优化:优化 TableInfo.newInstanceByRow 可能存在的性能问题 #I94D33 +- 优化:优化 ToManyRelation 存在的性能问题,感谢 @swqxdba +- 修复:多数据源模式下,当设置了分片规则以后,不能设置正确的 DbType,感谢 @ccwilliam +- 修复:代码生成器设置类型为 java.util.List 时,import 导入不正确的问题 +- 修复:ClassUtil.getAllMethods 方法处理枚举类型时逻辑有缺陷的问题 #I94749 #I94321 +- 修复:@EnumValue 标记在方法上没有获取 propertyType 的问题,感谢 @Suomm +- 修复:设置全局的 TypeHandler 不起作用的问题,感谢 @Suomm +- 修复:被 transient 标记的字段不会被映射到数据库当中的问题,感谢 @Suomm #I953IS +- 文档:代码生成器添加设置 `java.util.List` 类型的相关文档 +- 文档:代码生成器添加关于无法获取注释的相关注意事项 +- 文档:修正自动映射的相关示例代码,感谢 @zhangyx +- 文档:修正 db + row 的相关实例代码,感谢 @zhangyx + + + ## v1.8.0 20240223: - 优化:entityOrBase.tpl 中命令占位符被替换后,entity 里面多了一行空白行,感谢 @caohenghui - 修复:在复杂的 VO 嵌套查询时,addResultMap 抛出异常的问题,感谢 @leizhiyou diff --git a/docs/zh/changes.md b/docs/zh/changes.md index cfeeb367..bf043db8 100644 --- a/docs/zh/changes.md +++ b/docs/zh/changes.md @@ -2,6 +2,28 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 + +## v1.8.1 20240302: +- 新增:添加 CommaSplitTypeHandler 用于对逗号分割存储映射到实体类 `List` 的支持 +- 新增:代码生成器 EntityConfig 添加 superClassFactory 配置的支持 +- 优化:重构代码生成器模块的 JdbcTypeMapper,以支持更多的参数读取 +- 优化:FlexTransactionAutoConfiguration 添加更多的 AutoConfigureBefore 设置,感谢 @wittplus #I930JB +- 优化:优化 EntityGenerator.java 的相关输出日志 +- 优化:优化 TableInfo.newInstanceByRow 可能存在的性能问题 #I94D33 +- 优化:优化 ToManyRelation 存在的性能问题,感谢 @swqxdba +- 修复:多数据源模式下,当设置了分片规则以后,不能设置正确的 DbType,感谢 @ccwilliam +- 修复:代码生成器设置类型为 java.util.List 时,import 导入不正确的问题 +- 修复:ClassUtil.getAllMethods 方法处理枚举类型时逻辑有缺陷的问题 #I94749 #I94321 +- 修复:@EnumValue 标记在方法上没有获取 propertyType 的问题,感谢 @Suomm +- 修复:设置全局的 TypeHandler 不起作用的问题,感谢 @Suomm +- 修复:被 transient 标记的字段不会被映射到数据库当中的问题,感谢 @Suomm #I953IS +- 文档:代码生成器添加设置 `java.util.List` 类型的相关文档 +- 文档:代码生成器添加关于无法获取注释的相关注意事项 +- 文档:修正自动映射的相关示例代码,感谢 @zhangyx +- 文档:修正 db + row 的相关实例代码,感谢 @zhangyx + + + ## v1.8.0 20240223: - 优化:entityOrBase.tpl 中命令占位符被替换后,entity 里面多了一行空白行,感谢 @caohenghui - 修复:在复杂的 VO 嵌套查询时,addResultMap 抛出异常的问题,感谢 @leizhiyou diff --git a/docs/zh/intro/getting-started.md b/docs/zh/intro/getting-started.md index e3c83a7e..1a7e792c 100644 --- a/docs/zh/intro/getting-started.md +++ b/docs/zh/intro/getting-started.md @@ -53,7 +53,7 @@ VALUES (1, '张三', 18, '2020-01-11'), com.mybatis-flex mybatis-flex-spring-boot-starter - 1.8.0 + 1.8.1 com.mysql @@ -81,7 +81,7 @@ VALUES (1, '张三', 18, '2020-01-11'), com.mybatis-flex mybatis-flex-spring-boot3-starter - 1.8.0 + 1.8.1 com.mysql diff --git a/docs/zh/intro/gradle.md b/docs/zh/intro/gradle.md index 211608dc..6dfc23fa 100644 --- a/docs/zh/intro/gradle.md +++ b/docs/zh/intro/gradle.md @@ -10,7 +10,7 @@ ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-core:1.8.0") + implementation("com.mybatis-flex:mybatis-flex-core:1.8.1") } ``` @@ -18,7 +18,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-core:1.8.0' + implementation 'com.mybatis-flex:mybatis-flex-core:1.8.1' } ``` @@ -28,7 +28,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring:1.8.0") + implementation("com.mybatis-flex:mybatis-flex-spring:1.8.1") } ``` @@ -36,7 +36,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.0' + implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.1' } ``` @@ -46,7 +46,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.0") + implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.1") } ``` @@ -54,7 +54,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.0' + implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.1' } ``` @@ -70,7 +70,7 @@ dependencies { ```kotlin dependencies { - annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.0") + annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.1") } ``` @@ -78,6 +78,6 @@ dependencies { ```groovy dependencies { - annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.0' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.1' } ``` diff --git a/docs/zh/intro/maven.md b/docs/zh/intro/maven.md index aac61a71..ad075e4f 100644 --- a/docs/zh/intro/maven.md +++ b/docs/zh/intro/maven.md @@ -12,12 +12,12 @@ com.mybatis-flex mybatis-flex-core - 1.8.0 + 1.8.1 com.mybatis-flex mybatis-flex-processor - 1.8.0 + 1.8.1 provided ``` @@ -28,12 +28,12 @@ com.mybatis-flex mybatis-flex-spring - 1.8.0 + 1.8.1 com.mybatis-flex mybatis-flex-processor - 1.8.0 + 1.8.1 provided `````` @@ -44,12 +44,12 @@ com.mybatis-flex mybatis-flex-spring-boot-starter - 1.8.0 + 1.8.1 com.mybatis-flex mybatis-flex-processor - 1.8.0 + 1.8.1 provided ``` @@ -60,12 +60,12 @@ com.mybatis-flex mybatis-flex-spring-boot3-starter - 1.8.0 + 1.8.1 com.mybatis-flex mybatis-flex-processor - 1.8.0 + 1.8.1 provided ``` @@ -88,7 +88,7 @@ com.mybatis-flex mybatis-flex-processor - 1.8.0 + 1.8.1 diff --git a/docs/zh/others/apt.md b/docs/zh/others/apt.md index 4c3e22fd..7d2cebe4 100644 --- a/docs/zh/others/apt.md +++ b/docs/zh/others/apt.md @@ -220,7 +220,7 @@ pom.xml 添加 `annotationProcessorPaths` 配置, ``` dependencies { ... - annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.0' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.1' } ``` diff --git a/docs/zh/others/codegen.md b/docs/zh/others/codegen.md index 35c84b2c..17d1654f 100644 --- a/docs/zh/others/codegen.md +++ b/docs/zh/others/codegen.md @@ -10,7 +10,7 @@ com.mybatis-flex mybatis-flex-codegen - 1.8.0 + 1.8.1 ``` diff --git a/pom.xml b/pom.xml index d8c26ebc..a0af8c5a 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.mybatis-flex parent pom - 1.8.0 + 1.8.1 mybatis-flex https://mybatis-flex.com @@ -56,7 +56,7 @@ 8 8 - 1.8.0 + 1.8.1 3.5.15 2.1.2