<select id="selectByAllCondition" parameterType="News" resultMap="News">
select * from yg_news order by pubtime desc
</select>
设置返回结果集,指定数据库类型CLOB
<resultMap type="com.yg.entity.News" id="News">
<result property="content" column="content" javaType="java.lang.String" jdbcType="CLOB"/>
</resultMap>
select * from yg_news order by pubtime desc
</select>
设置返回结果集,指定数据库类型CLOB
<resultMap type="com.yg.entity.News" id="News">
<result property="content" column="content" javaType="java.lang.String" jdbcType="CLOB"/>
</resultMap>