diff --git a/.gitee/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml index d1d19c4b..30eab021 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.7.1,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.7.2,并已搜索过现有的问题 (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 1b621b30..03f73cad 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.7.1,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.7.2,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) required: true - type: textarea id: question-description diff --git a/changes.md b/changes.md index 26c8e0ae..6b0c45a8 100644 --- a/changes.md +++ b/changes.md @@ -3,6 +3,25 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 +## v1.7.2 20231018: +- 新增:QueryWrapper 添加对 MyBatis-Plus 的兼容 API,方便喜欢 MyBatis-Flex 的用户进行迁移 +- 新增:QueryModel #select()方法 添加 Iterable queryColumns,感谢 @guan-meng-yuan +- 新增:QueryWrapper 添加 RawQueryTable 的支持,感谢 @Suomm +- 新增:RelationToOne 注解添加对 extraCondition 配置的支持 #I88MJU +- 新增:重构 DynamicSchemaProcessor,添加 table 参数,方便通过 table 获取 schema #I88REA +- 优化:在 insert 时,若 entity 有主键,则直接使用 entity 的主键,不再通过主键生成器来生成 #I88TX1 +- 优化:RelationManager 前置数据源的设置,否则关联查询注解可能造成数据源设置冲突 +- 修复:使用 Db 无法使用指定 Logger 打印日志问题,感谢 @aohanaohan #I88C41 +- 修复:MyBatis-Flex 与 spring-data-jpa 混用时候,出现事务管理器冲突错误的问题,感谢 @tocken +- 修复:CPI.setWhereQueryCondition 传入 null 时,出现 NPE 的问题 #I88DFH +- 修复:代码生成器未做自定义配置时,生成代码时出现 NPE 的问题 #I88UIZ +- 测试:为测试添加更多的断言已保证测试安全 +- 文档:QueryWrapper 添加关于自定义字符串列名的相关文档 +- 文档:QueryWrapper 添加关于 MyBatis-Plus 兼容 API 的相关文档 +- 文档:QueryWrapper 添加关于 Map 转化为 QueryWrapper 的相关文档 + + + ## v1.7.1 20231016: - 新增:QueryColumnBehavior 增加内置的忽略规则,方便使用,感谢 @chenjh3 - 优化:代码生成器提供了 GlobalConfig 的 customConfig 的 getter/setter,感谢 @qq925966998 diff --git a/docs/zh/changes.md b/docs/zh/changes.md index 26c8e0ae..6b0c45a8 100644 --- a/docs/zh/changes.md +++ b/docs/zh/changes.md @@ -3,6 +3,25 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 +## v1.7.2 20231018: +- 新增:QueryWrapper 添加对 MyBatis-Plus 的兼容 API,方便喜欢 MyBatis-Flex 的用户进行迁移 +- 新增:QueryModel #select()方法 添加 Iterable queryColumns,感谢 @guan-meng-yuan +- 新增:QueryWrapper 添加 RawQueryTable 的支持,感谢 @Suomm +- 新增:RelationToOne 注解添加对 extraCondition 配置的支持 #I88MJU +- 新增:重构 DynamicSchemaProcessor,添加 table 参数,方便通过 table 获取 schema #I88REA +- 优化:在 insert 时,若 entity 有主键,则直接使用 entity 的主键,不再通过主键生成器来生成 #I88TX1 +- 优化:RelationManager 前置数据源的设置,否则关联查询注解可能造成数据源设置冲突 +- 修复:使用 Db 无法使用指定 Logger 打印日志问题,感谢 @aohanaohan #I88C41 +- 修复:MyBatis-Flex 与 spring-data-jpa 混用时候,出现事务管理器冲突错误的问题,感谢 @tocken +- 修复:CPI.setWhereQueryCondition 传入 null 时,出现 NPE 的问题 #I88DFH +- 修复:代码生成器未做自定义配置时,生成代码时出现 NPE 的问题 #I88UIZ +- 测试:为测试添加更多的断言已保证测试安全 +- 文档:QueryWrapper 添加关于自定义字符串列名的相关文档 +- 文档:QueryWrapper 添加关于 MyBatis-Plus 兼容 API 的相关文档 +- 文档:QueryWrapper 添加关于 Map 转化为 QueryWrapper 的相关文档 + + + ## v1.7.1 20231016: - 新增:QueryColumnBehavior 增加内置的忽略规则,方便使用,感谢 @chenjh3 - 优化:代码生成器提供了 GlobalConfig 的 customConfig 的 getter/setter,感谢 @qq925966998 diff --git a/docs/zh/intro/getting-started.md b/docs/zh/intro/getting-started.md index c312b508..ee8f2aa8 100644 --- a/docs/zh/intro/getting-started.md +++ b/docs/zh/intro/getting-started.md @@ -62,7 +62,7 @@ VALUES (1, '张三', 18, '2020-01-11'), com.mybatis-flex mybatis-flex-spring-boot-starter - 1.7.1 + 1.7.2 com.mysql diff --git a/docs/zh/intro/gradle.md b/docs/zh/intro/gradle.md index 27cdca26..68078e6d 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.7.1") + implementation("com.mybatis-flex:mybatis-flex-core:1.7.2") } ``` @@ -18,7 +18,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-core:1.7.1' + implementation 'com.mybatis-flex:mybatis-flex-core:1.7.2' } ``` @@ -28,7 +28,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring:1.7.1") + implementation("com.mybatis-flex:mybatis-flex-spring:1.7.2") } ``` @@ -36,7 +36,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring:1.7.1' + implementation 'com.mybatis-flex:mybatis-flex-spring:1.7.2' } ``` @@ -46,7 +46,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.1") + implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.2") } ``` @@ -54,7 +54,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.1' + implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.2' } ``` @@ -70,7 +70,7 @@ dependencies { ```kotlin dependencies { - annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.7.1") + annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.7.2") } ``` @@ -78,6 +78,6 @@ dependencies { ```groovy dependencies { - annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.1' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.2' } ``` diff --git a/docs/zh/intro/maven.md b/docs/zh/intro/maven.md index 88ada9be..071c1dec 100644 --- a/docs/zh/intro/maven.md +++ b/docs/zh/intro/maven.md @@ -12,12 +12,12 @@ com.mybatis-flex mybatis-flex-core - 1.7.1 + 1.7.2 com.mybatis-flex mybatis-flex-processor - 1.7.1 + 1.7.2 provided ``` @@ -28,12 +28,12 @@ com.mybatis-flex mybatis-flex-spring - 1.7.1 + 1.7.2 com.mybatis-flex mybatis-flex-processor - 1.7.1 + 1.7.2 provided `````` @@ -44,12 +44,12 @@ com.mybatis-flex mybatis-flex-spring-boot-starter - 1.7.1 + 1.7.2 com.mybatis-flex mybatis-flex-processor - 1.7.1 + 1.7.2 provided ``` @@ -72,7 +72,7 @@ com.mybatis-flex mybatis-flex-processor - 1.7.1 + 1.7.2 diff --git a/docs/zh/others/apt.md b/docs/zh/others/apt.md index dd6920e8..f5d699ac 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.7.1' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.2' } ``` diff --git a/docs/zh/others/codegen.md b/docs/zh/others/codegen.md index cab4298f..4f4d5654 100644 --- a/docs/zh/others/codegen.md +++ b/docs/zh/others/codegen.md @@ -10,7 +10,7 @@ com.mybatis-flex mybatis-flex-codegen - 1.7.1 + 1.7.2 ``` diff --git a/pom.xml b/pom.xml index 576ec76e..c8ccd430 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.mybatis-flex parent pom - 1.7.1 + 1.7.2 mybatis-flex https://mybatis-flex.com @@ -55,7 +55,7 @@ 8 8 - 1.7.1 + 1.7.2 3.5.13 2.1.0