SqlMapConfig.xml
<typeHandler jdbcType="CLOB" javaType="java.lang.String" callback="org.springframework.orm.ibatis.support.ClobStringTypeHandler" />
<resultMap class="ArticleColumnDymanic" id="ArticleColumnDymanicResult">
<result property="id" column="i_id" />
<result property="name" column="vc_name" />
<result property="servletUrl" column="vc_url" />
<result property="filePath" column="vc_filePath" />
<result property="file" column="vc_file" />
<result property="content" column="b_content" jdbcType="CLOB" />
<result property="desc" column="vc_desc" />
<result property="num" column="i_num" />
<result property="pub.pub0" column="vc_pub0" />
<result property="pub.pub1" column="vc_pub1" />
<result property="pub.pub2" column="vc_pub2" />
<result property="base.createTime" column="d_createtime" />
<result property="base.createUser" column="i_createuser" />
<result property="base.lastModTime" column="d_lastmodtime" />
<result property="base.modUser" column="i_moduser" />
<result property="base.deleted" column="c_deleted" />
<result property="version" column="vc_version" />
<result property="isnew" column="vc_isnew" />
<result property="vid" column="vc_id" />
<result property="remark" column="vc_remark" />
</resultMap>
<insert id="insertArticleColumnDymanic" parameterClass="ArticleColumnDymanic">
<selectKey keyProperty="id" resultClass="long">
select seq_article_columndymanic.nextVal from dual
</selectKey>
insert into
tb_article_columndymanic(i_id,vc_name,vc_url,vc_filePath,vc_file,b_content,vc_desc,i_num,d_createtime,i_createuser,d_lastmodtime,i_moduser,c_deleted,vc_pub0,vc_pub1,vc_pub2,vc_version,vc_isnew,vc_id,vc_remark)
values (#id#,#name#,#servletUrl#,#filePath#,#file#,#content,handler=org.springframework.orm.ibatis.support.ClobStringTypeHandler#,#desc#,#num#,sysdate,#base.createUser#,sysdate,#base.modUser#,'0',#pub.pub0#,#pub.pub1#,#pub.pub2#
,#version#,#isnew#,
<isNull property="vid">
#id#
</isNull>
<isNotNull property="vid">
#vid#
</isNotNull>
,#remark#)
</insert>