当前位置:网站首页>9.5.4 parsestatement method (mapperannotationbuilder) - SSM in depth analysis and project practice

9.5.4 parsestatement method (mapperannotationbuilder) - SSM in depth analysis and project practice

2020-12-07 21:21:00 Memory

All the source code in the project can be found in the linked repository :https://github.com/chenhaoxiang/uifuture-ssm

9.5.4 parseStatement Method

Let's look at parseStatement analytic method , Generate corresponding MappedStatement object .MapperAnnotationBuilder Class parse Method will traverse Mapper All methods in the interface object , One Method The object corresponds to a MappedStatement object ,ResultMap Definition and xml Different ways of configuration file , The configuration file is defined by a separate element node , Annotation is defined directly on the method .

Each method can be used to create new ResultMap object , You can also quote existing ResultMap Uniqueness of objects id. Such as code list 9-23 Shown .

parseStatement Method

Code list 9-23:parseStatement Method

void pa

版权声明
本文为[Memory]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201207212023851d.html