Add setter for mybatisMapperRegistry to support @DataPermission extensions #3558
weihuanwan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We plan to add an extension to MyBatis to handle the @DataPermission annotation on each Mapper's mappedStatement. Currently, mybatisMapperRegistry in MybatisConfiguration does not provide a set method, so it is not possible to directly customize the registry to store annotation information. At present, the only feasible approach is to modify this property via reflection, which is not very elegant. Could a setMybatisMapperRegistry method be provided in a future version to allow more flexible extensions?
All reactions