diff --git a/.gitee/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml index 4d9d2c8f..5b1c4ecf 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.7,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.7.8,并已搜索过现有的问题 (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 553d630b..708e9627 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.7,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) + - label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.7.8,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues) required: true - type: textarea id: question-description diff --git a/docs/zh/changes.md b/docs/zh/changes.md index 32dedbc1..602780c0 100644 --- a/docs/zh/changes.md +++ b/docs/zh/changes.md @@ -2,6 +2,34 @@ 查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。 +## v1.7.8 20240201: +- 新增:在 DialectFactory 中添加全局方言设置的功能,感谢 @farukonfly +- 新增:SQL 审计的打印功能添加对当前数据源的输出,感谢 @hhggcon +- 新增:枚举映射注解 @EnumValue 添加在方法上进行支持的功能,感谢 @huangxy +- 新增:AbstractInsertListener 添加自动探测子类类型的支持,感谢 @luo_zhan +- 新增:代码生成器为的实体类增加 serialVersionUID 字段生成的支持,感谢 @hanjinfeng39 +- 新增:代码生成器添加对 model、service、Controller 等自定义生成目录配置的支持 +- 新增:代码生成器添加生成 Entity Base 类的支持 #I7JH7K +- 新增:SqlOperators 增加支持 QueryColumn 参数的重载,感谢 @robor.luo +- 优化:完善对 mybatis-flex-spring-boot3-starter 的 Maven 版本管理 +- 优化:修正 Spring 下 BeanPostProcessorChecker 的警告问题,感谢 @Suomm +- 优化:进一步优化关联查询时的重名映射问题,感谢 @Suomm +- 优化:移除驼峰命名转化对 Row 类的影响 +- 优化:优化 FieldWrapper 的异常信息输出 +- 优化:优化 Page.java 防止传入为 0 的 pageSize 值 +- 修复:修改 exist 在子select中出错的问题,感谢 @font-c +- 修复:修复 ColumnInfo 在某些情况下可能出现 NPE 的问题 #I8UTJC +- 修复:SQL审计正确返回变更行数结果不正确的问题,感谢 @RishChen +- 修复:关联查询时,当实体自身字段数据为 null 时,出现 NPE 的问题,感谢 @tangzc +- 修复:RelationManager.clearMaxDepth() 不能正常工作的问题,感谢 @tangzc +- 文档:更新关于使用 springboot3 的相关文档 +- 文档:增加在方法上使用注解 EnumValue 文档,感谢 @huangxy +- 文档:代码生成器添加 setJdkVersion 的文档说明,感谢 @hanjinfeng39 +- 文档:进一步完善对 QueryWrapper 的相关描述,感谢 @robor.luo +- 文档:添加 spring-data 整合警告解决方法的相关文档,感谢 @Suomm +- 文档:更新常见问题,感谢 @Suomm + + ## v1.7.7 20240104: - 新增:添加 spring-boot3 新模块,用于 springboot v3 下使用,感谢 @Suomm diff --git a/docs/zh/intro/getting-started.md b/docs/zh/intro/getting-started.md index d6b10942..26fa909e 100644 --- a/docs/zh/intro/getting-started.md +++ b/docs/zh/intro/getting-started.md @@ -61,7 +61,7 @@ VALUES (1, '张三', 18, '2020-01-11'), com.mybatis-flex mybatis-flex-spring-boot-starter - 1.7.7 + 1.7.8 com.mysql @@ -89,7 +89,7 @@ VALUES (1, '张三', 18, '2020-01-11'), com.mybatis-flex mybatis-flex-spring-boot3-starter - 1.7.7 + 1.7.8 com.mysql diff --git a/docs/zh/intro/gradle.md b/docs/zh/intro/gradle.md index c46d186f..526656dd 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.7") + implementation("com.mybatis-flex:mybatis-flex-core:1.7.8") } ``` @@ -18,7 +18,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-core:1.7.7' + implementation 'com.mybatis-flex:mybatis-flex-core:1.7.8' } ``` @@ -28,7 +28,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring:1.7.7") + implementation("com.mybatis-flex:mybatis-flex-spring:1.7.8") } ``` @@ -36,7 +36,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring:1.7.7' + implementation 'com.mybatis-flex:mybatis-flex-spring:1.7.8' } ``` @@ -46,7 +46,7 @@ dependencies { ```kotlin dependencies { - implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.7") + implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.8") } ``` @@ -54,7 +54,7 @@ dependencies { ```groovy dependencies { - implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.7' + implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.7.8' } ``` @@ -70,7 +70,7 @@ dependencies { ```kotlin dependencies { - annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.7.7") + annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.7.8") } ``` @@ -78,6 +78,6 @@ dependencies { ```groovy dependencies { - annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.7' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.8' } ``` diff --git a/docs/zh/intro/maven.md b/docs/zh/intro/maven.md index 78614843..ce1bbf21 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.7 + 1.7.8 com.mybatis-flex mybatis-flex-processor - 1.7.7 + 1.7.8 provided ``` @@ -28,12 +28,12 @@ com.mybatis-flex mybatis-flex-spring - 1.7.7 + 1.7.8 com.mybatis-flex mybatis-flex-processor - 1.7.7 + 1.7.8 provided `````` @@ -44,12 +44,12 @@ com.mybatis-flex mybatis-flex-spring-boot-starter - 1.7.7 + 1.7.8 com.mybatis-flex mybatis-flex-processor - 1.7.7 + 1.7.8 provided ``` @@ -60,12 +60,12 @@ com.mybatis-flex mybatis-flex-spring-boot3-starter - 1.7.7 + 1.7.8 com.mybatis-flex mybatis-flex-processor - 1.7.7 + 1.7.8 provided ``` @@ -88,7 +88,7 @@ com.mybatis-flex mybatis-flex-processor - 1.7.7 + 1.7.8 diff --git a/docs/zh/others/apt.md b/docs/zh/others/apt.md index 213f7222..edf738e2 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.7' + annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.7.8' } ``` diff --git a/docs/zh/others/codegen.md b/docs/zh/others/codegen.md index da75a202..2003aa6f 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.7 + 1.7.8 ``` diff --git a/mybatis-flex-annotation/pom.xml b/mybatis-flex-annotation/pom.xml index 4bd5cad8..ba922102 100644 --- a/mybatis-flex-annotation/pom.xml +++ b/mybatis-flex-annotation/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/mybatis-flex-codegen/pom.xml b/mybatis-flex-codegen/pom.xml index 96e560be..4b13135f 100644 --- a/mybatis-flex-codegen/pom.xml +++ b/mybatis-flex-codegen/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 @@ -23,7 +23,7 @@ com.mybatis-flex mybatis-flex-core - 1.7.7 + 1.7.8 com.mybatis-flex diff --git a/mybatis-flex-core/pom.xml b/mybatis-flex-core/pom.xml index b46bc50e..1eb2e993 100644 --- a/mybatis-flex-core/pom.xml +++ b/mybatis-flex-core/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 @@ -101,7 +101,7 @@ com.mybatis-flex mybatis-flex-annotation - 1.7.7 + 1.7.8 compile diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java index feaa5ea4..81f2c759 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/FlexConsts.java @@ -27,7 +27,7 @@ public class FlexConsts { } public static final String NAME = "MyBatis-Flex"; - public static final String VERSION = "1.7.7"; + public static final String VERSION = "1.7.8"; public static final String SQL = "$$sql"; diff --git a/mybatis-flex-dependencies/pom.xml b/mybatis-flex-dependencies/pom.xml index 3e97ca67..ebbbcbfe 100644 --- a/mybatis-flex-dependencies/pom.xml +++ b/mybatis-flex-dependencies/pom.xml @@ -6,7 +6,7 @@ com.mybatis-flex parent - 1.7.7 + 1.7.8 mybatis-flex-dependencies diff --git a/mybatis-flex-processor/pom.xml b/mybatis-flex-processor/pom.xml index d21bc5a6..ae91bf3d 100644 --- a/mybatis-flex-processor/pom.xml +++ b/mybatis-flex-processor/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 @@ -22,7 +22,7 @@ com.mybatis-flex mybatis-flex-annotation - 1.7.7 + 1.7.8 diff --git a/mybatis-flex-solon-plugin/pom.xml b/mybatis-flex-solon-plugin/pom.xml index aa86d233..cfff54b0 100644 --- a/mybatis-flex-solon-plugin/pom.xml +++ b/mybatis-flex-solon-plugin/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/mybatis-flex-spring-boot-starter/pom.xml b/mybatis-flex-spring-boot-starter/pom.xml index a67ad2f0..4fd76dd5 100644 --- a/mybatis-flex-spring-boot-starter/pom.xml +++ b/mybatis-flex-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 @@ -23,7 +23,7 @@ com.mybatis-flex mybatis-flex-spring - 1.7.7 + 1.7.8 @@ -104,7 +104,7 @@ com.mybatis-flex mybatis-flex-core - 1.7.7 + 1.7.8 diff --git a/mybatis-flex-spring-boot3-starter/pom.xml b/mybatis-flex-spring-boot3-starter/pom.xml index fa81e211..6847fe06 100644 --- a/mybatis-flex-spring-boot3-starter/pom.xml +++ b/mybatis-flex-spring-boot3-starter/pom.xml @@ -6,7 +6,7 @@ com.mybatis-flex parent - 1.7.7 + 1.7.8 mybatis-flex-spring-boot3-starter @@ -19,7 +19,7 @@ com.mybatis-flex mybatis-flex-spring-boot-starter - 1.7.7 + 1.7.8 org.mybatis diff --git a/mybatis-flex-spring/pom.xml b/mybatis-flex-spring/pom.xml index 77b2367a..d0ff56d2 100644 --- a/mybatis-flex-spring/pom.xml +++ b/mybatis-flex-spring/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 @@ -22,7 +22,7 @@ com.mybatis-flex mybatis-flex-core - 1.7.7 + 1.7.8 diff --git a/mybatis-flex-test/mybatis-flex-native-test/pom.xml b/mybatis-flex-test/mybatis-flex-native-test/pom.xml index ff522064..936b6c4c 100644 --- a/mybatis-flex-test/mybatis-flex-native-test/pom.xml +++ b/mybatis-flex-test/mybatis-flex-native-test/pom.xml @@ -5,7 +5,7 @@ mybatis-flex-test com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/mybatis-flex-test/mybatis-flex-seata-test/pom.xml b/mybatis-flex-test/mybatis-flex-seata-test/pom.xml index 59bc0f72..1f3d7f37 100644 --- a/mybatis-flex-test/mybatis-flex-seata-test/pom.xml +++ b/mybatis-flex-test/mybatis-flex-seata-test/pom.xml @@ -4,7 +4,7 @@ mybatis-flex-test com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml b/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml index cd0d5a91..d60cb54c 100644 --- a/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml +++ b/mybatis-flex-test/mybatis-flex-spring-boot-test/pom.xml @@ -5,7 +5,7 @@ mybatis-flex-test com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/mybatis-flex-test/mybatis-flex-spring-boot-test/src/main/resources/application.yml b/mybatis-flex-test/mybatis-flex-spring-boot-test/src/main/resources/application.yml index 0ce252f9..c6ae79f0 100644 --- a/mybatis-flex-test/mybatis-flex-spring-boot-test/src/main/resources/application.yml +++ b/mybatis-flex-test/mybatis-flex-spring-boot-test/src/main/resources/application.yml @@ -7,7 +7,7 @@ spring: # driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/flex_test username: root - password: 12345678 + password: 123456 # driver-class-name: # datasource: # driver-class-name: org.h2.Driver diff --git a/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml b/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml index 25e16fb5..9fecf995 100644 --- a/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml +++ b/mybatis-flex-test/mybatis-flex-spring-cloud-test/pom.xml @@ -5,7 +5,7 @@ mybatis-flex-test com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/mybatis-flex-test/mybatis-flex-spring-test/pom.xml b/mybatis-flex-test/mybatis-flex-spring-test/pom.xml index bae84b63..e6593c84 100644 --- a/mybatis-flex-test/mybatis-flex-spring-test/pom.xml +++ b/mybatis-flex-test/mybatis-flex-spring-test/pom.xml @@ -5,7 +5,7 @@ mybatis-flex-test com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/mybatis-flex-test/pom.xml b/mybatis-flex-test/pom.xml index bdd7ab63..2714f630 100644 --- a/mybatis-flex-test/pom.xml +++ b/mybatis-flex-test/pom.xml @@ -5,7 +5,7 @@ parent com.mybatis-flex - 1.7.7 + 1.7.8 4.0.0 diff --git a/pom.xml b/pom.xml index fdc56735..db3ddb1a 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.mybatis-flex parent pom - 1.7.7 + 1.7.8 mybatis-flex https://mybatis-flex.com @@ -56,7 +56,7 @@ 8 8 - 1.7.7 + 1.7.8 3.5.15 2.1.2