MyBatis-Flex v1.6.0 released, an elegant MyBatis enhancement framework

MyBatis-Flex: An elegant MyBatis enhancement framework

feature

1. Very lightweight

The entire framework of MyBatis-Flex only depends on MyBatis, and no other third-party dependencies.

2. Only enhance

MyBatis-Flex supports CRUD, paging query, multi-table query, and batch operations without losing any of the original functions of MyBatis.

3. High performance

MyBatis-Flex adopts a unique technical architecture. Compared with many similar frameworks, MyBatis-Flex's performance in terms of addition, deletion, modification and query is 5-10 times or more.

4. More agile

MyBatis-Flex supports multiple primary keys, multi-table queries, logical deletion, optimistic locking, data desensitization, data encryption, multiple data sources, sub-database sub-tables, field permissions, field encryption, multi-tenancy, transaction management, SQL auditing... Etc., etc. All this, free and flexible.

MyBatis-Flex v1.6.0 update details are as follows:

  • New: Added support for databases Hive SQL and Doris
  • New: ActiveRecord adds saveOpt method, user saves data and returns content
  • New: Data query adds support for automatic mapping of ignore fields
  • New: Add RelationManager.addQueryRelations() method to query only part of related fields
  • Optimization: Refactoring removes the methods or classes that have been marked for deletion! ! ! breaking update
  • Optimization: Add more parameter setting methods to SnowFlakeIDKeyGenerator
  • Optimization: Refactor FlexSpringTransaction to have higher performance
  • Optimization: optimize Mappers and add necessary annotations, thanks @王朱 
  • Optimization: Refactor the code generator, add support for chained calls and necessary code comments, thanks to @王朱 
  • Optimization: Refactoring unifies the judgment of not being null into QueryColumnBehavior, which is convenient for users to customize logic, thanks @王朱 
  • Optimization: Modify some annotation errors under FlexSqlSessionFactoryBean, thanks @cainiao3853 
  • Fix: NPE problem occurs when using as in some scenarios #I7T00C:[Bug]: NPE error is reported when multi-table joint query 
  • Fix: In the scenario of Db + Row, the result is incorrect when customizing RowKey
  • Fix: QueryMethods.dateFormat use wrong problem #I7TEUM: [Bug]: dateFormat exception 
  • Fix: QueryMethods.substring use wrong problem #I7TEUM: [Bug]: dateFormat exception 
  • Fix: When returning to map, configuring map-underscore-to-camel-case does not work
  • Fix: The configuration of the data source decryptor through the Bean annotation and the configuration of the custom configuration are inconsistent #I7UHUN: [Bug]: The configuration of the decryptor is not uniform 
  • Fix: The problem of using Hutool's BeanUtil.copyProperties to copy Page fails #I7VBUE:[Bug]: When using BeanUtil.copyProperties, because the data type is defined as long but the data type of the set method is received as number, it cannot be copied correctly 
  • Fix: UpdateEntity does not filter @Column(ignore = true) fields #I7RE0J:[Bug]: UpdateEntity does not filter @Column(ignore = true) fields 
  • Fix: FlexSpringTransaction error in some scenarios, thanks to @chenjh3
  • Fix: The batch operation under Oracle may return incorrect results in some cases
  • Fix: The code generator has NPE problems in some cases, thanks to @王朱 
  • Fix: The ignore attribute caused by the v1.5.9 version is also added to the defaultQueryColumns default query column, thanks to @王朱 
  • Documentation: Add relevant documentation for use by RelationManager.addQueryRelations()
  • Documentation: Add mybatis-flex-dependencies usage instructions, thanks to @王朱 
  • Documentation: Modify some typos under FAQ
  • Docs: FAQ Added how to get save and get related docs of primary key
  • Documentation: When adding multiple tombstones, update the relevant documents of the deleter and delete time at the same time
  • Docs: Potentially useless error note when adding bulk operations
  • Documentation: Optimize the relevant documents of the code generator, thanks to @王朱 
  • Documentation: Add saveOpt related documents to ActiveRecord, thanks to @王朱 
  • Documentation: The problem of modifying the sample code of the dynamic table name is wrong, thanks to @王朱 
  • Documentation: Fix the problem of gradle documentation error, thanks to @鹤雨笑猪黑 
  • Documentation: Fix some wrong descriptions of Db + Row, thanks @yang_zzu 

 

The current version has been released, thanks to the PR of the following 5 students, they are:

@王帅, @cainiao3853 , @yang_zzu , @鹤雅笑猪黑, @chenjh3

 

To learn more about the MyBatis-Flex framework, please refer to the link:

 

bilibili video tutorial (free):

Guess you like

Origin www.oschina.net/news/255496/mybatis-flex-1-6-0-released