![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mybatis
caolaosanahnu
这个作者很懒,什么都没留下…
展开
-
mybatis实战教程(mybatis in action),mybatis入门到精通
http://www.yihaomen.com/article/java/302.htm 写在这个系列前面的话: 以前曾经用过ibatis,这是mybatis的前身,当时在做项目时,感觉很不错,比hibernate灵活。性能也比hibernate好。而且也比较轻量级,因为当时在项目中,没来的及做很很多笔记。后来项目结束了,我也没写总结文档。已经过去好久了。但最近突然又对这个ORM 工具感兴趣。转载 2013-12-12 18:22:04 · 887 阅读 · 0 评论 -
凤凰涅槃:从 iBatis 到 MyBatis
http://www.ibm.com/developerworks/cn/opensource/os-cn-mybatis/ 从 iBatis 到 MyBatis,你准备好了吗? 对于从事 Java EE 的开发人员来说,iBatis 是一个再熟悉不过的持久层框架了,在 Hibernate、JPA 这样的一站式对象 / 关系映射(O/R Mapping)解决方案盛行之前,iBaits 基本是持转载 2013-12-13 17:40:50 · 824 阅读 · 0 评论 -
Mybatis拦截器介绍及分页插件
http://haohaoxuexi.iteye.com/blog/1851081 Mybatis拦截器介绍及分页插件 1.1 目录 1.1 目录 1.2 前言 1.3 Interceptor接口 1.4 注册拦截器 1.5 Mybatis可拦截的方法 1.6 利用拦截器进行分页 1.2 前言 拦截器的一个作用就是我们可以拦截某些方法的调用,我转载 2013-12-16 16:32:04 · 959 阅读 · 0 评论 -
ibatis中主键自动增长(Oracle,Ms sql server ,mysql)
http://morning2008.iteye.com/blog/611528 iBatis的sqlMap配置文件的selectKey元素有个type属性,可以指定pre或者post表示前生成(pre)还是后生成(post)。 Oracle设置 Xml代码 insert id="insertProduct-ORACLE" parame转载 2014-06-04 11:40:06 · 1129 阅读 · 0 评论 -
在控制台显示sql语句,类似hibernate show_sql.
http://www.yihaomen.com/article/java/425.htm 用过Hibernate的人都知道,hibernate 是可以配置 show_sql 显示 自动生成的SQL 语句,用format_sql 可以格式化SQL 语句,但如果用 mybatis 怎么实现这个功能呢, 在网上搜索了下,基本都是通过配置日志来实现的,比如配置我们最常用的 log4j.propertie转载 2014-06-05 16:22:15 · 2359 阅读 · 0 评论 -
The type org.springframework...DaoSupport cannot be resolved. It is indirectly..
http://hi.baidu.com/abolo1990/item/f276e40a6c85270f6c9048ad 在整合[hibernate]和[spring]的时候出现以下异常:The hierarchy of the type xxx is inconsistentThe type org.springframework.dao.support.DaoSupport cannot转载 2014-06-05 21:39:07 · 2153 阅读 · 0 评论 -
ibatis与spring的整合
http://www.blogjava.net/freeman1984/archive/2007/12/07/166112.html Spring通过DAO模式,提供了对iBATIS的良好支持。SqlMapClient对象是iBATIS中的主要对象,我们可以通过配置让spring来管理SqlMapClient对象的创建。 与hibernate类似,Spring 提供了SqlMapC转载 2014-06-05 21:52:09 · 556 阅读 · 0 评论 -
iBatis resultMap出错 The error happened while setting a property on the result object 解决办法
http://blog.csdn.net/itshu/article/details/3402253 错误: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error转载 2014-07-04 10:47:15 · 1883 阅读 · 0 评论