mybatis resultmap标签type属性什么意思

时间:2021-11-19 19:47:53

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>