QuickDAO4.1.3 released, optimized global type conversion and new multi-field association

QuickDAO version 4.1.3 has been released and can be downloaded from the Maven central warehouse (Alibaba Cloud warehouse may not be updated in time). The content of this update is as follows:

  • [New] SubCondition adds on method to support multi-field association. For example, from A join table B on A.id = B.id and A.id2 = B.id2  (previous version only supports single field association)
  • [New] Global type conversion function, you can manually specify the global column type conversion function during configuration
  • [Fix] Type conversion function does not work on virtual query

According to developer feedback, the next version plans to add support for lamda expressions. You can use lamda expressions to specify query fields when calling the query condition API.

QuickDAO is a simple and easy-to-use ORM framework. Although there are many ORM frameworks on the market, there are many pain points that these frameworks have not solved. Compared with other ORM frameworks, QuickDAO has the following characteristics:

Support foreign key association operations

Although many ORM frameworks claim to support foreign key queries, without exception, the final form is to let developers write SQL statements by hand. QuickDAO supports foreign key related queries at the API design level, and there is no need to hand-write multi-table related query SQL statements.

All operations on the database only need to inject a DAO object to complete

An entity class of frameworks such as Mybatis corresponds to a Mapper interface file and an xml file. Especially when it comes to multi-table query, it is often found in the development that another XXXMapper needs to be introduced. QuickDAO only needs one DAO object to complete the database All operations

Supports specifying database column types, indexes and other information in Java code

QuickDAO supports automatic table creation and automatic addition of fields. Not only that, QuickDAO supports specifying column types, column names, whether to create foreign keys, creating database indexes, etc. in Java code. In addition, QuickDAO also supports querying database field information, adding Fields, delete fields and other operations.

Powerful query operation API

If you really understand QuickDAO deeply, you will find that QuickDAO's API design is absolutely delightful. QuickDAO's Query interface defines a large number of query operation APIs, such as non-empty query, equivalent query, greater than or less than equal to query, IN query, subquery , Paging, sorting, specifying the returned columns, etc., and so on. These interfaces have added corresponding interface annotations, and the naming is relatively standardized, and all the interfaces that add queries start with add.

Finally, the original intention of writing this framework is that the existing ORM frameworks on the market cannot solve the pain points in development. After nearly 2 years of support and development, QuickDAO has been iterated to version 4.X, and has been actually used in personal projects and company projects. I hope that the QuickDAO framework I developed can contribute my own strength to China's open source business.

QuickDAO document:  https://quickdao.schoolwow.cn
QuickDAO's github address:  https://github.com/sunyue1380/QuickDAO4
QuickDAO's gitee address:  https://gitee.com/648823596/quickdao4

Guess you like

Origin www.oschina.net/news/131456/quickdao-4-1-3-released