单项选择题
Mybatis映射文件中能实现属性一对多映射的标签是()。
A.resultType
B.resultMap
C.association
D.collection
点击查看答案
相关考题
-
单项选择题
在Mybatis中,下列关于ResultType说法错误的是()。
A.resultType表示返回值类型为:完整类名或别名,也允许使用基本的数据类型,包括String 、int类型
B.resultType和resultMap的数据结构是一样的,都是Map结构
C.如果PoJo的属性名与SQL语句查询出来的字段名不一致的话,也可使用resultType来进行结果的自动映射
D.resultType和resultMap不能同时使用 -
多项选择题
mybaties中模糊查询like语句的写法()。
A.select *from foo where bar like #{value}
B.select *from foo where bar like #{%value%}
C.select *from foo where bar like %#{value}%
D.select *from foo where bar like "%"${value}"%" -
单项选择题
以下()属于查询班级所有学生并按照年龄升序排序的SQL语句。
A.select *from student group by age
B.select *from student group by age desc
C.select *from student order by age desc
D.select *from student order by age
