MyBatis-Flex v1.4.5 发布,一个优雅的 MyBatis 增强框架

科技资讯 投稿 6500 0 评论

MyBatis-Flex v1.4.5 发布,一个优雅的 MyBatis 增强框架

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

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

MyBatis-Flex v1.4.5 更新如下:

    新增:添加 sql "CONCAT" 函数的使用支持,感谢 @王帅
  • 新增:添加 BaseMapper.selectObjectByQueryAs 方法,感谢 @王帅
  • 新增:添加 @ColumnAlias 注解,并解决在 join query 下可能出现的错误赋值的问题,感谢 @王帅
  • 新增:添加 MybatisFlexAdminAutoConfiguration 对自动进行 SQL 审计发送的支持,感谢 @王帅
  • 优化:BaseMapper.selectOne 添加对 map、condition 等自动添加 limit 1 的支持
  • 优化:重构 FunctionQueryColumn 已适配更多的函数,感谢 @王帅
  • 优化:在某些情况下,执行 SQL 出错没有抛出原生错误的问题
  • 优化:移动 DefaultMessageFactory.getHostIp 到 HttpUtil,感谢 @王帅
  • 优化:重构 APT 的配置名称。 !!! 破坏性更新
  • 文档:优化由于版本造成的一些错误文档
  • 文档:添加列计算的使用文档和示例
  • 文档:修改某些细节错别字

 

APT 配置名称修改如下:

    processor.allInTables ---> processor.allInTables.enable
  • processor.tablesPackage ---> processor.allInTables.package
  • processor.tablesClassName ----> processor.allInTables.className
  • processor.mappersGenerateEnable ----> processor.mapper.generateEnable
  • processor.baseMapperClass ---> processor.mapper.baseClass
  • processor.mappersPackage ---> processor.mapper.package
  • processor.tablesNameStyle ---> processor.tableDef.propertiesNameStyle
  • processor.tablesDefSuffix ---> processor.tableDef.instanceSuffix
  • processor.entity.ignoreSuffixes ---> processor.tableDef.ignoreEntitySuffixes

 

进一步了解 MyBatis-Flex 框架,请参考一下链接:

    1、快速开始:https://mybatis-flex.com/zh/intro/getting-started.html
  • 2、多表关联查询:https://mybatis-flex.com/zh/base/query.html
  • 3、一对多、多对一:https://mybatis-flex.com/zh/base/field-query.html
  • 4、灵活的 QueryWrapper:https://mybatis-flex.com/zh/base/querywrapper.html
  • 5、逻辑删除:https://mybatis-flex.com/zh/core/logic-delete.html
  • 6、乐观锁:https://mybatis-flex.com/zh/core/version.html
  • 7、数据填充:https://mybatis-flex.com/zh/core/fill.html
  • 6、数据脱敏:https://mybatis-flex.com/zh/core/mask.html
  • 7、SQL 审计:https://mybatis-flex.com/zh/core/audit.html
  • 8、多数据源:https://mybatis-flex.com/zh/core/multi-datasource.htm
  • 9、数据源加密:https://mybatis-flex.com/zh/core/datasource-encryption.html
  • 10、动态表名:https://mybatis-flex.com/zh/core/dynamic-table.html
  • 11、事务管理:https://mybatis-flex.com/zh/core/tx.html
  • 12、数据权限:https://mybatis-flex.com/zh/core/data-permission.html
  • 13、字段权限:https://mybatis-flex.com/zh/core/columns-permission.html
  • 14、字段加密:https://mybatis-flex.com/zh/core/columns-encrypt.html
  • 15、字典回写:https://mybatis-flex.com/zh/core/columns-dict.html
  • 16、枚举属性:https://mybatis-flex.com/zh/core/enum-property.html
  • 17、多租户:https://mybatis-flex.com/zh/core/multi-tenancy.html
  • 18、代码生成器:https://mybatis-flex.com/zh/others/codegen.html
  • 19、QQ 交流群:https://mybatis-flex.com/zh/intro/qq-group.html
  • 20、更好用的功能正在路上:https://mybatis-flex.com

 

和其他框架对比请参考:

    1、和 MyBatis-Plus 、Fluent-Mybatis 【功能】方面的对比:https://mybatis-flex.com/zh/intro/comparison.html
  • 2、和 MyBatis-Plus 【性能】方面的对比:https://mybatis-flex.com/zh/intro/benchmark.html
谷歌突然变更规则,包含安装 APK 代码的 App 被 Google Play 下架 谷歌:关于 Rust 的谣传和事实 美团以 20.65 亿元收购光年之外 开源中国完成 B+ 轮战略融资,股份重组成为完全中立平台 员工窃取公司游戏源代码,半年盈利 1.5 亿 “开源 Windows” ReactOS 的 x64 移植接近稳定 Linus 的独特放松方式:写汇编代码 WhatsApp 弃用基于 Electron 框架构建的桌面应用程序 JetBrains IDE 集成 LLM —— AI 助手 (AI Assistant) 上线 Wasmer 4.0 正式发布,通用 WebAssembly 运行时

编程笔记 » MyBatis-Flex v1.4.5 发布,一个优雅的 MyBatis 增强框架

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

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