Mybatis-Flex v1.1.7 发布,新一代的 Mybatis 增强框架

科技资讯 投稿 6900 0 评论

Mybatis-Flex 是一个优雅的 Mybatis 增强框架,它非常轻量、同时拥有极高的性能与灵活性。我们可以轻松的使用 Mybaits-Flex 链接任何数据库,其内置的 QueryWrapper 帮助我们极大的减少了 SQL 编写的工作的同时,减少出错的可能性。

总而言之,Mybatis-Flex 能够极大地提高我们的开发效率和开发体验,让我们有更多的时间专注于自己的事情。

Mybatis-Flex v1.1.7  主要更新如下:

  • 新增:QueryCondition 添加 when(Predicate 方法,感谢 @落羽er
  • 新增:代码生成器 ColumnConfig 添加 tenantId 字段配置,用于代码生成时添加 @Column(tenantId=true 注解,感谢 @PengPeng
  • 新增:代码生成器 TableConfig 添加 mapperGenerateEnable 配置,感谢 @PengPeng
  • 新增:代码生成器添加 IDialect.MYSQL 方言
  • 优化:FlexEnumTypeHandler.java 完善对 public field 的读取
  • 优化:代码生成器生成 java 文件时,打印生成目录
  • 优化:将 ConsoleMessageCollector 的 getFullSql 方法移入 AuditMessage,方便重用 感谢 @PengPeng
  • 修复:配置 mybatis-flex.mapper-locations 在某些场景下会出现 NPE 的问题版本号#I6X4U8:子查询时,逻辑删除字段的处理有错误
  • 修复:启用乐观锁 和 逻辑删除时,在某些极端情况下会出现 argument type mismatch 异常的问题 感谢 @PengPeng
  • 修复:flex 和 lombok 以及 mapstruct 同时使用时,APT 配置文件不生效的问题。版本号@lhzsdnu
  • 文档:APT 添加和 Lombok、Mapstruct 整合的文档
  • 文档:完善补充 "打印SQL" 的相关文档

 

和其他框架对比请参考:

  • 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

 

编程笔记 » Mybatis-Flex v1.1.7 发布,新一代的 Mybatis 增强框架

赞同 (35) or 分享 (0)
游客 发表我的评论   换个身份
取消评论

表情
(0)个小伙伴在吐槽