学习一:http://www.blogjava.net/freeman1984/archive/2007/12/07/166116.html
学习二:http://www.blogjava.net/freeman1984/archive/2007/12/07/166113.html
学习三:http://www.blogjava.net/freeman1984/archive/2007/12/07/166112.html
ibatis的框架灵活之处:
比如update的用法,一个方法N个用处,让程序员对数据库的操作方便多了:
<update id="update" parameterClass="User">
update EME_MSG_SYS set ID=#id#
<isNotEmpty prepend="," property="status">STATUS=#status#</isNotEmpty>
<isNotEmpty prepend="," property="name">NAME=#name#</isNotEmpty>
where ID=#id#
<isNotEmpty prepend="and" property="siteId">site_id=#siteId#</isNotEmpty>
</update>
发现:根椐数据取得map
getSqlMapClientTemplate().queryForMap(sqlmapNamespace + ".selectByZone", sqlParam, "ruleName", "ruleValue")
学习二:http://www.blogjava.net/freeman1984/archive/2007/12/07/166113.html
学习三:http://www.blogjava.net/freeman1984/archive/2007/12/07/166112.html
ibatis的框架灵活之处:
比如update的用法,一个方法N个用处,让程序员对数据库的操作方便多了:
<update id="update" parameterClass="User">
update EME_MSG_SYS set ID=#id#
<isNotEmpty prepend="," property="status">STATUS=#status#</isNotEmpty>
<isNotEmpty prepend="," property="name">NAME=#name#</isNotEmpty>
where ID=#id#
<isNotEmpty prepend="and" property="siteId">site_id=#siteId#</isNotEmpty>
</update>
发现:根椐数据取得map
getSqlMapClientTemplate().queryForMap(sqlmapNamespace + ".selectByZone", sqlParam, "ruleName", "ruleValue")