ibatis学习
纯菜鸟
努力学习,天天看书.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ibatis返回结果集
object 别名映射->实体类:resultClass select id=" selectAll" resultClass="AppLog"> select ID as id, TYPE as type, DESCR as descr from APP_LOG where ID =转载 2016-12-14 13:33:42 · 1315 阅读 · 0 评论 -
Mybatis 批量插入带oracle序列例子+ORA-02287: 此处不允许序号
在使用mybatis进行批量插入时,发现对于使用Oracle的自动增长序列时提示 : ORA-02287: 此处不允许序号 的错误,下面的这种使用可以解决问题: insert into PRESON select SEQ_PRESON_ID.NEXTVAL,A.* from( sepa转载 2016-12-14 13:35:17 · 3952 阅读 · 3 评论 -
Ibatic Cache 使用实例
缓存 Mapped Statement结果集 =========================== 通过在查询 statement 中指定 cacheModel 属性,可以缓存 Mapped Statement 中得到的查询结果。 Cache model 是在 SQL Map XML 文件中定义的可配置缓存模式,可以使用cacheModel元素来配置。 例子如下:转载 2016-12-14 13:45:06 · 474 阅读 · 0 评论 -
ibatis 批量处理
最近有些利用ibatis的批量处理的东西。 例如批量插入: public int inserFSDLBatch(final List list) throws Exception { this.getSqlMapClientTemplate().execute( new SqlMapClientCallback(){ public Object doInSqlMapClient(Sq转载 2016-12-14 13:51:53 · 685 阅读 · 0 评论 -
ibatis in spring 中的简单配置
ibatis in spring(简单配置) (实现Spring与ibaties的简单) 这里我们重点探讨Spring框架下的ibatis应用,特别是在容器事务管理模式下的ibatis应用开发。针对ibatis,Spring配置文件如下: 1、Ibatis-Context.xml: (下面我将对本文档进行详细说明) "http://www.spri转载 2016-12-14 13:53:48 · 254 阅读 · 0 评论
分享