build: v1.8.3 release (^.^)YYa!!

This commit is contained in:
Michael Yang 2024-03-24 19:19:09 +08:00
parent 4c7093a837
commit 44d21262f5
25 changed files with 106 additions and 48 deletions

View File

@ -7,7 +7,7 @@ body:
attributes:
label: 这个 Bug 是否已经存在:
options:
- label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.2,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues)
- label: 我确定已经把 MyBatis-Flex 升级到最新版本 v1.8.3,并已搜索过现有的问题 (https://gitee.com/mybatis-flex/mybatis-flex/issues)
required: true
- type: textarea
attributes:

View File

@ -3,6 +3,35 @@
查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。
## v1.8.3 20240324:
- 新增QueryWrapper 添加 hasCondition 方法,感谢 @Suomm
- 新增:添加 SqlOperator 忽略属性,用于在某些场景下忽略 entity 字段,感谢 @Suomm
- 新增:添加 selectCursorByQueryAs 重载方法,感谢 @Suomm
- 新增:添加 MapUtil 替代 MyBatis 官方的 MapUtil
- 新增DynamicTableProcessor 的 process 方法添加 OperateType 参数,感谢 @wtj
- 新增CPI 添加获取条件中参数的方法,感谢 @Suomm
- 新增:添加 RawValue 获取参数的方法,感谢 @Suomm
- 新增:多租户功能可以根据表名返回多租户条件,感谢 @Suomm
- 新增:支持使用 UpdateWrapper 自定义插入值,感谢 @Suomm
- 新增:代码生成器策略配置 StrategyConfig 添加支持通配符功能,感谢 @gongdonghui
- 新增:`@Table``@Column` 注解添加 comment 配置的支持
- 新增:代码生成器添加自动把 comment 添加到注解的相关功能支持
- 修复:修复 MultiDataSourceAutoConfiguration 下的 druid 路径错误的问题,感谢 @Suomm
- 修复:解决 p6spy 下多数据源获取 DbType 失败的问题,感谢 @ocoooo
- 修复:生成代码时, 某些情况下不会添加 `@EqualsAndHashCode(callSuper = true)` 的问题
- 修复Relation 查询使用 Lambda 表达式无法指定类名问题,感谢 @Suomm
- 修复:使用默认数据源获取 dsName 为 null 的错误,感谢 @Suomm
- 优化:逻辑删除时,保证逻辑删除前面的条件被括号包裹,感谢 @swqxdba
- 优化:重构 使用 QueryTable 类替代 TableDef 类,感谢 @Suomm
- 优化:重命名 JdbcTypeMapping 的 mapper 为 typeMapper
- 优化:优化 Spring 下事务管理的自动配置,防止在某些场景下被其他管理器接管的问题
- 优化:优化 dependencies 模块的 pom.xml 方别独立发布
- 文档:优化 `@Table` 注解文档的错别字问题,感谢 @zhaoshuli1984
- 文档:优化事务相关文档的错别字问题,感谢 @lifejwang11
- 文档:添加关于 JdbcTypeMapping 的 typeMapper 使用文档
## v1.8.2 20240305:
- 新增Maven 编译添加 Javadoc 插件生成 Javadoc 的支持,感谢 @Suomm
- 优化:优化对 SpringBoot3 下的 Druid 数据源适配,感谢 @Suomm #I94P5P

View File

@ -3,6 +3,35 @@
查看 [全部代码贡献者](/zh/intro/what-is-mybatisflex.html#贡献者)。
## v1.8.3 20240324:
- 新增QueryWrapper 添加 hasCondition 方法,感谢 @Suomm
- 新增:添加 SqlOperator 忽略属性,用于在某些场景下忽略 entity 字段,感谢 @Suomm
- 新增:添加 selectCursorByQueryAs 重载方法,感谢 @Suomm
- 新增:添加 MapUtil 替代 MyBatis 官方的 MapUtil
- 新增DynamicTableProcessor 的 process 方法添加 OperateType 参数,感谢 @wtj
- 新增CPI 添加获取条件中参数的方法,感谢 @Suomm
- 新增:添加 RawValue 获取参数的方法,感谢 @Suomm
- 新增:多租户功能可以根据表名返回多租户条件,感谢 @Suomm
- 新增:支持使用 UpdateWrapper 自定义插入值,感谢 @Suomm
- 新增:代码生成器策略配置 StrategyConfig 添加支持通配符功能,感谢 @gongdonghui
- 新增:`@Table``@Column` 注解添加 comment 配置的支持
- 新增:代码生成器添加自动把 comment 添加到注解的相关功能支持
- 修复:修复 MultiDataSourceAutoConfiguration 下的 druid 路径错误的问题,感谢 @Suomm
- 修复:解决 p6spy 下多数据源获取 DbType 失败的问题,感谢 @ocoooo
- 修复:生成代码时, 某些情况下不会添加 `@EqualsAndHashCode(callSuper = true)` 的问题
- 修复Relation 查询使用 Lambda 表达式无法指定类名问题,感谢 @Suomm
- 修复:使用默认数据源获取 dsName 为 null 的错误,感谢 @Suomm
- 优化:逻辑删除时,保证逻辑删除前面的条件被括号包裹,感谢 @swqxdba
- 优化:重构 使用 QueryTable 类替代 TableDef 类,感谢 @Suomm
- 优化:重命名 JdbcTypeMapping 的 mapper 为 typeMapper
- 优化:优化 Spring 下事务管理的自动配置,防止在某些场景下被其他管理器接管的问题
- 优化:优化 dependencies 模块的 pom.xml 方别独立发布
- 文档:优化 `@Table` 注解文档的错别字问题,感谢 @zhaoshuli1984
- 文档:优化事务相关文档的错别字问题,感谢 @lifejwang11
- 文档:添加关于 JdbcTypeMapping 的 typeMapper 使用文档
## v1.8.2 20240305:
- 新增Maven 编译添加 Javadoc 插件生成 Javadoc 的支持,感谢 @Suomm
- 优化:优化对 SpringBoot3 下的 Druid 数据源适配,感谢 @Suomm #I94P5P

View File

@ -53,7 +53,7 @@ VALUES (1, '张三', 18, '2020-01-11'),
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring-boot-starter</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
@ -81,7 +81,7 @@ VALUES (1, '张三', 18, '2020-01-11'),
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring-boot3-starter</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>com.mysql</groupId>

View File

@ -10,7 +10,7 @@
```kotlin
dependencies {
implementation("com.mybatis-flex:mybatis-flex-core:1.8.2")
implementation("com.mybatis-flex:mybatis-flex-core:1.8.3")
}
```
@ -18,7 +18,7 @@ dependencies {
```groovy
dependencies {
implementation 'com.mybatis-flex:mybatis-flex-core:1.8.2'
implementation 'com.mybatis-flex:mybatis-flex-core:1.8.3'
}
```
@ -28,7 +28,7 @@ dependencies {
```kotlin
dependencies {
implementation("com.mybatis-flex:mybatis-flex-spring:1.8.2")
implementation("com.mybatis-flex:mybatis-flex-spring:1.8.3")
}
```
@ -36,7 +36,7 @@ dependencies {
```groovy
dependencies {
implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.2'
implementation 'com.mybatis-flex:mybatis-flex-spring:1.8.3'
}
```
@ -46,7 +46,7 @@ dependencies {
```kotlin
dependencies {
implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.2")
implementation("com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.3")
}
```
@ -54,7 +54,7 @@ dependencies {
```groovy
dependencies {
implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.2'
implementation 'com.mybatis-flex:mybatis-flex-spring-boot-starter:1.8.3'
}
```
@ -70,7 +70,7 @@ dependencies {
```kotlin
dependencies {
annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.2")
annotationProcessor("com.mybatis-flex:mybatis-flex-processor:1.8.3")
}
```
@ -78,6 +78,6 @@ dependencies {
```groovy
dependencies {
annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.2'
annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.3'
}
```

View File

@ -12,12 +12,12 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-core</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<scope>provided</scope>
</dependency>
```
@ -28,12 +28,12 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<scope>provided</scope>
</dependency>
``````
@ -44,12 +44,12 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring-boot-starter</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<scope>provided</scope>
</dependency>
```
@ -60,12 +60,12 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring-boot3-starter</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<scope>provided</scope>
</dependency>
```
@ -88,7 +88,7 @@
<path>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-processor</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</path>
</annotationProcessorPaths>
</configuration>

View File

@ -220,7 +220,7 @@ pom.xml 添加 `annotationProcessorPaths` 配置,
```
dependencies {
...
annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.2'
annotationProcessor 'com.mybatis-flex:mybatis-flex-processor:1.8.3'
}
```

View File

@ -15,7 +15,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-codegen</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
```

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -23,7 +23,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-core</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<exclusions>
<exclusion>
<groupId>com.mybatis-flex</groupId>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -101,7 +101,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-annotation</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<scope>compile</scope>
</dependency>

View File

@ -27,7 +27,7 @@ public class FlexConsts {
}
public static final String NAME = "MyBatis-Flex";
public static final String VERSION = "1.8.2";
public static final String VERSION = "1.8.3";
public static final String SQL = "$$sql";

View File

@ -6,7 +6,7 @@
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-dependencies</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<packaging>pom</packaging>
@ -48,7 +48,7 @@
</developer>
</developers>
<properties>
<mybatis-flex.version>1.8.2</mybatis-flex.version>
<mybatis-flex.version>1.8.3</mybatis-flex.version>
</properties>
<dependencyManagement>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -22,7 +22,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-annotation</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
</dependencies>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -23,7 +23,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>
@ -104,7 +104,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-core</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
</dependencies>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>com.mybatis-flex</groupId>
<artifactId>parent</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<artifactId>mybatis-flex-spring-boot3-starter</artifactId>
@ -19,7 +19,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-spring-boot-starter</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -22,7 +22,7 @@
<dependency>
<groupId>com.mybatis-flex</groupId>
<artifactId>mybatis-flex-core</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
</dependency>
<dependency>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>mybatis-flex-test</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -4,7 +4,7 @@
<parent>
<artifactId>mybatis-flex-test</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>mybatis-flex-test</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>mybatis-flex-test</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>mybatis-flex-test</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>parent</artifactId>
<groupId>com.mybatis-flex</groupId>
<version>1.8.2</version>
<version>1.8.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -7,7 +7,7 @@
<groupId>com.mybatis-flex</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>1.8.2</version>
<version>1.8.3</version>
<name>mybatis-flex</name>
<url>https://mybatis-flex.com</url>
@ -55,7 +55,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<mybatis-flex.version>1.8.2</mybatis-flex.version>
<mybatis-flex.version>1.8.3</mybatis-flex.version>
<mybatis.version>3.5.15</mybatis.version>
<mybatis-spring.version>2.1.2</mybatis-spring.version>