单项选择题<association>元素中,指定表中对应的字段的属性是()。

A.property
B.column
C.javaType
D.fetchType


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题MyBatis中的对象之间的关联关系不包括()。

A.零对一
B.一对一
C.一对多
D.多对多

3.单项选择题()元素可以用来防止SQL注入并且方便移植。

A.<bind>
B.<foreach>
C.<set>
D.<else>

5.单项选择题Mybatis中的()元素用于数组和集合的循环遍历。

A.<if>
B.<when>
C.<where>
D.<foreach>

6.单项选择题<foreach>元素的()属性配置的是循环中当前的元素。

A.index
B.item
C.collection
D.separator

8.单项选择题拼接SQL语句时,可以用()元素自动删除SQL语句条件部分的多余的"AND"或"OR"。

A.<if>
B.<choose>
C.<otherwise>
D.<where>

9.单项选择题MyBatis的动态SQL中,相当于Java的switch...case...default语句的是()。

A.<choose>、<when>、<otherwise>元素组合
B.<select>、<where>、<otherwise>元素组合
C.<choose>、<when>、<trim>元素组合
D.<if>、<when>、<otherwise>元素组合

10.单项选择题动态SQL中,判断username不是空且不是空串的写法,正确的是()。

A.<if "username!=null and username!=’’">
B.<if test="username!=null or username!=’’">
C.<if test="username!=null and username!=’’">
D.<trim test="username!=null and username!=’’">