Open qmdx opened 1 month ago
@harawata Thoughts? Looks ok to me.
Adding a mapper method at runtime is not a good idea. If you want to generate SQL dynamically, please use SQL provider.
Adding a mapper method at runtime is not a good idea. If you want to generate SQL dynamically, please use SQL provider.
hi @harawata The injection method provided by PR is an XML simulation injection method, which has more secure SQL protection, Performance may be better in ordinary simple crud situations,Every time the SQL Provider method is called, the SQL statement is regenerated, which may result in additional parsing time, especially for complex SQL generation logic. I hope to carefully consider my suggestion and provide an additional injection solution, which is not a bad thing for MyBatis itself. Thank you for your reply
I'm sorry, but I still think this is a bad idea.
This dynamic injection method is the core principle of
mybatis-plus
, and we hope that the officialmybatis
can adopt it, Thank you for checking