MyBatis-Flex v1.8.3 发布,一个优雅的 MyBatis 增强框架
MyBatis-Flex: 一个优雅的 MyBatis 增强框架
特征
1、很轻量
MyBatis-Flex 整个框架只依赖 MyBatis,再无其他任何第三方依赖。
2、只增强
MyBatis-Flex 支持 CRUD、分页查询、多表查询、批量操作,但不丢失 MyBatis 原有的任何功能。
3、高性能
MyBatis-Flex 采用独特的技术架构、相比许多同类框架,MyBatis-Flex 的在增删改查等方面的性能均超越其 5~10 倍或以上。
4、更灵动
MyBatis-Flex 支持多主键、多表查询、逻辑删除、乐观锁、数据脱敏、数据加密、多数据源、分库分表、字段权限、 字段加密、多租户、事务管理、SQL 审计... 等等等等。 这一切,免费且灵动。
MyBatis-Flex v1.8.3 更新细节如下:
- 新增:QueryWrapper 添加 hasCondition 方法,感谢 @王帅
- 新增:添加 SqlOperator 忽略属性,用于在某些场景下忽略 entity 字段,感谢 @王帅
- 新增:添加 selectCursorByQueryAs 重载方法,感谢 @王帅
- 新增:添加 MapUtil 替代 MyBatis 官方的 MapUtil
- 新增:DynamicTableProcessor 的 process 方法添加 OperateType 参数,感谢 @wtj
- 新增:CPI 添加获取条件中参数的方法,感谢 @王帅
- 新增:添加 RawValue 获取参数的方法,感谢 @王帅
- 新增:多租户功能可以根据表名返回多租户条件,感谢 @王帅
- 新增:支持使用 UpdateWrapper 自定义插入值,感谢 @王帅
- 新增:代码生成器策略配置 StrategyConfig 添加支持通配符功能,感谢 @公帅
- 新增:
@Table和@Column注解添加 comment 配置的支持 - 新增:代码生成器添加自动把 comment 添加到注解的相关功能支持
- 修复:修复 MultiDataSourceAutoConfiguration 下的 druid 路径错误的问题,感谢 @王帅
- 修复:解决 p6spy 下多数据源获取 DbType 失败的问题,感谢 @oc
- 修复:生成代码时, 某些情况下不会添加
@EqualsAndHashCode(callSuper = true)的问题 - 修复:Relation 查询使用 Lambda 表达式无法指定类名问题,感谢 @王帅
- 修复:使用默认数据源获取 dsName 为 null 的错误,感谢 @王帅
- 优化:逻辑删除时,保证逻辑删除前面的条件被括号包裹,感谢 @SWQXDBA
- 优化:重构 使用 QueryTable 类替代 TableDef 类,感谢 @王帅
- 优化:重命名 JdbcTypeMapping 的 mapper 为 typeMapper
- 优化:优化 Spring 下事务管理的自动配置,防止在某些场景下被其他管理器接管的问题
- 优化:优化 dependencies 模块的 pom.xml 方别独立发布
- 文档:优化
@Table注解文档的错别字问题,感谢 @zhaoshuli1984 - 文档:优化事务相关文档的错别字问题,感谢 @life
- 文档:添加关于 JdbcTypeMapping 的 typeMapper 使用文档
代码贡献者,请参考:https://mybatis-flex.com/zh/intro/what-is-mybatisflex.html#%E8%B4%A1%E7%8C%AE%E8%80%85
进一步了解 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/relations-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
bilibili 视频教程(免费):
课程 :《MyBatis-Flex 视频教程》
课程简介:该课程由 王帅 老师录制主讲, 王帅 老师也是除了作者以外,对 MyBatis-Flex 代码贡献最大的 committer。 其无论对 MyBatis 还是 MyBatis-Flex,都有非常深入的理解。
课程地址:
