Mybatis
天贼
这个作者很懒,什么都没留下…
展开
-
Mybatis的一对多查询
表如下:create table student(sid int(11) primary key not null,sname varchar(20), cardid int(11));create table studentclass( cid int primary key not null, cname varchar(20));alter table student ad...原创 2020-01-18 09:50:48 · 132 阅读 · 0 评论 -
Mybatis的一对一查询以及延迟加载
一对一的关联查询:使用业务扩展类使用ResultMap表如下create table student(sid int(11) primary key not null,sname varchar(20), cardid int(11));create table studentcard(cardid int(11) primary key not null,cardinf...原创 2020-01-15 17:01:02 · 178 阅读 · 1 评论