mybatis resultmap标签type属性什么意思

mybatis resultmap标签type属性什么意思?

:就表示被转换的对象啊,被转换成object的类型啊

<resultMap id="BaseResultMap" type="BaseObject">
<id property="id" column="id" />
<result property="appId" column="appid" />
<result property="type" column="type" />
<result property="title" column="title" />
<result property="poster" column="poster" />
<result property="publisherUid" column="publisher_uid" />
<result property="likeCount" column="like_count" />
<result property="commentCount" column="comment_count" />
<result property="watchCount" column="watch_count" />
<result property="weight" column="weight" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="category" column="category" />
<result property="mediaType" column="media_type" />
<result property="mediaDuration" column="media_duration" />
<result property="contentUrl" column="content_url" />
</resultMap>

文章来自:http://www.cnblogs.com/panxuejun/p/6127041.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3