Research On Mybatis Mapper Model Based On SQL Template
XIONG Shiyong, DU Tianxiang, ZHAO Rongzheng, Rongsen Wu · 2020 International Conference on Computer Engineering and Application (ICCEA) · 2020
This article researches the implementation of Mybatis and the idea of SQL template design, analyzes the design idea of the persistence layer framework to solve the “impedance mismatch”, and analyzes the question of low development efficiency caused by the imperfection of mapper model in the current popular Mybatis persistence layer framework. Based on the framework Mybatis, this article combines operators to design a more complete mapper model, and designs a two-way synchronization mechanism for the SQL template for the model, which avoids problems such as the difficulty of late optimization caused by the strong coupling of operators and SQL. This model avoids redundant configuration files, while reducing optimization costs and improving flexibility and applicability through a twoway synchronization mechanism.