MyBatis学习(3)
MyBatis-逆向工程
Mybatis工作原理

一个MapperStatement代表一个封装改查标签的详细信息。
Configuration对象保存了所有配置文件的详细信息。
总结:把配置文件的信息解析并保存在Configuration对象中,返回包含了Configuration的DefaultSqlSessionFactory对象。

executor是用来做增删改查的。

代理对象

查询流程图

总结

存储过程语句:
create or replace procedure hello_test( p_start in int,p_end in int,p_count out int,p_emps out sys_refcursor) as begin select count(*)into p_count from employees; open p_emps for select * from (select rownum rn,e.* from employees e where rownum<=p_end) where rn>=p_start; end hello_test;

浙公网安备 33010602011771号