![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IBatis学习
dengminhui
这个作者很懒,什么都没留下…
展开
-
iBATIS动态查询的实现浅析
iBATIS动态查询的实现主要是在iBATIS中使用安全的拼接语句,动态查询iBATIS比JDBC的优势之一,安全高效iBATIS动态查询实例:(说明文字在注释中)﹤ select id ="selectAllProducts" parameterClass ="Product" resultMap ="ProductResult" ﹥ select id,note ...原创 2009-09-22 21:43:34 · 83 阅读 · 0 评论 -
ibatis中的resultMap如何继承
Xml代码 <typeAlias alias="Domain" type="com.xxx.Domain" /> <resultMap id = "domain" type = "Domain"> <result property="id" column="id" /&原创 2009-05-04 13:43:57 · 220 阅读 · 0 评论 -
使用Abator自动生成IBatis代码
1 安装Eclipse插件(1). 要求eclipse3.1,jdk1.4以上(2). 在eclipse上安装abator插件 eclipse菜单栏 --> help --> Software Updates --> Find And Install... 在弹出的对话框中选择 “Search for new features to install” 然后点击 “n...2009-05-07 11:00:35 · 106 阅读 · 0 评论 -
IBATIS中关于iterate和‘$’与‘#’的应用
一个包含List元素的HashMap参数赋给sqlMappublic int getCountById(String id, String title, List ids) throws Exception { Map paramMap=new HashMap(); paramMap.put("id", id); paramMap....原创 2009-07-13 17:19:54 · 162 阅读 · 0 评论 -
ibatis的批处理
(1)spring模式:尽管spring已经配置了事务,但以下代码中还是要设置事务,不然batch不会起作用;另外这里虽然设了一下事务处理,但对全局事务并不会造成影响;注:不启用事务将建立多次连接,这表示batch没起作用,建立事务后一次连接就搞定了.public void batchAddExamlog(List examlogList) throws SQLException{ ...原创 2010-02-21 14:27:33 · 125 阅读 · 0 评论