Mybatis-Flex v1.1.9 发布,新一代的 Mybatis 增强框架
Mybatis-Flex 是一个优雅的 Mybatis 增强框架,它非常轻量、同时拥有极高的性能与灵活性。我们可以轻松的使用 Mybaits-Flex 链接任何数据库,其内置的 QueryWrapper 帮助我们极大的减少了 SQL 编写的工作的同时,减少出错的可能性。
总而言之,Mybatis-Flex 能够极大地提高我们的开发效率和开发体验,让我们有更多的时间专注于自己的事情。
Mybatis-Flex v1.1.9 主要更新如下:
- 新增:根据 id 查询数据时,返回默认字段而非全部字段
- 新增:APT 添加忽略 entity 后缀的配置支持
- 新增:添加 RowUtil.printPretty() 方法,用于调试
- 新增:代码生成器生成代码默认添加注释的功能
- 新增:添加 BaseEntity.insertSelective() 方法 #I6XS9Z:为什么没有insertSelective?
- 修复:子查询时,逻辑删除字段的未添加逻辑删除字段 #I6X4U8:子查询时,逻辑删除字段的处理有错误
- 修复:TransactionTemplate.execute 失效的问题 #I6XSHH:编程式事务 TransactionTemplate.execute 失效了
- 修复:"EXIST" 关键字错误的问题 #I6XTVB:QueryMethods的exist方法少了个S
- 修复:where 中第一个括号处理不正确的问题 #I6XXWR:where中第一个外层括号处理有问题
- 修复:批量插入且配置 onInsert 时,出现错误的问题
- 修复:批量插入 row,且为 row 设置主键时,出错的问题 #I6Y8ZU:使用DB Row批量插入最后一条插入失败
- 修复:Oracle 在某些情况下出现 SQLSyntaxErrorException 错误的问题 #I6Y6MZ:oracle的插入报错
- 修复:RowUtil.printPretty 在某些情况下显示数据不正确的问题
- 修复:APT 无法生成 @NotBlank 注解字段的问题
- 优化:更新 apt 的 mappersGenerateEnable 默认值为 false
- 文档:优化 APT 的相关文档
- 文档:优化 快速开始 的相关文档
- 文档:添加 column 全局配置的相关文档
- 文档:添加 使用 Mybatis 原生功能的相关文档
- 文档:添加 支持的数据库类型 的相关文档
- 文档:Db + Row 添加 left join 转换 entity 的文档
- 文档:优化 快速开始 的相关文档
- 文档:APT 文档添加关于 Gradle 构建的一些内容
和其他框架对比请参考:
- 1、和
MyBatis-Plus、Fluent-Mybatis功能方面的对比:https://mybatis-flex.com/zh/comparison.html - 2、和
MyBatis-Plus性能方面的对比:https://mybatis-flex.com/zh/benchmark.html
进一步了解 MyBatis-Flex 框架,请参考一下链接:
- 1、快速开始:https://mybatis-flex.com/zh/getting-started.html
- 2、强大的 QueryWrapper:https://mybatis-flex.com/zh/querywrapper.html
- 3、逻辑删除:https://mybatis-flex.com/zh/logic_delete.html
- 4、乐观锁:https://mybatis-flex.com/zh/version.html
- 5、数据填充:https://mybatis-flex.com/zh/fill.html
- 6、数据脱敏:https://mybatis-flex.com/zh/mask.html
- 7、SQL 审计:https://mybatis-flex.com/zh/audit.html
- 8、SQL 打印:https://mybatis-flex.com/zh/sql-print.html
- 9、多数据源:https://mybatis-flex.com/zh/multi-datasource.html
- 10、事务管理:https://mybatis-flex.com/zh/tx.html
- 11、字段权限:https://mybatis-flex.com/zh/columns-permission.html
- 12、字段加密:https://mybatis-flex.com/zh/columns-encrypt.html
- 13、字典回显:https://mybatis-flex.com/zh/columns-dict.html
- 14、枚举属性:https://mybatis-flex.com/zh/enum-property.html
- 15、多租户:https://mybatis-flex.com/zh/multi-tenancy.html
- 16、更好用的功能正在路上:https://mybatis-flex.com
