下面是IBatis和Hibernate的比较,多年前做了个presentation,现在拿出来看一下:<!-- [if gte mso 9]><xml>
– Hibernate: LGPL
– Ibatis: Apache2.0
– Hibernate: Higher learning curve
– Ibatis: Shorter learning curve
-
l
For a new system, full
control for it
– Hibernate: is easy to develop to a
complete new system
– Ibatis: is suitable for legacy database,
accessing any third party DB or poor Database design
– Hibernate: complete mapping table with
object, no need to write any SQL
– Ibatis:
SQL mapping, need to be familiar with SQL
– Hibernate: database type independent by
define dialect of DB
– Ibatis: database type related
– Hibernate:
is weak to handle the store procedure
– Ibatis: is complete SQL control, so does
store procedure
-
l
If one column of the table is modified
– Hibernate: is easy to maintain, only need
to modify property of the column is OK
– Ibatis: All the SQL related with the
column need to be modified
– Hibernate: far more higher,no need to
write SQL at all
– Ibatis: low efficiency
– Hibernate: Richer documents, many
supported vendors and complete product level
– Ibatis: less document, low work
efficiency
– Hibernate: SQL is automatically by
Hibernate, is hard to optimize SQL
– Ibatis: can attain the goal by optimize
SQL
– Hibernate: is easy to use cache
– Ibatis: configuration is
more difficult than Hibernate
<cacheModel id="lruCache" type="LRU" serialize="true" readOnly="false">
<property name="reference-type" value="WEAK"/>
<flushOnExecute statement="insertAccount"/>
<flushOnExecute statement="updateAccount"/>
<flushOnExecute statement="deleteAccountById"/>
</cacheModel>
<select id="selectAccountById" parameterClass="int" resultClass="Account" cacheModel="lruCache"> select ACC_ID as id, ACC_FIRST_NAME as firstName, ACC_LAST_NAME as lastName, ACC_EMAIL as emailAddress from ACCOUNT where ACC_ID = #id#
</select>
分享到:
相关推荐
iBatis VS Hibernate iBatis不亚于Hibernate
ibatis 与hibernate之间的比较优点和缺点
ibatis与hibernate区别,之中包括,现在企业为什么选择ibatis而放弃hibernate的选择,所有这里吧自由选择及。
选用ibatis和hibernate的区别选用ibatis和hibernate的区别选用ibatis和hibernate的区别
iBatis和Hibernate的区别
公司的大部分项目都开始使用IBatis作为O/R Mapping了,但是在使用的过程中也发现了很多不方便和存在...想了很多办法,都没能很好的避免这个问题,无意间在javaeye上看到了《使ibatis支持hibernate式的物理分页》这篇文章,
ibatas的sql语句需要自己手动写,而hibernate能够在程序运行时自动生成。但是不要就这样以为hibernate比ibatas方便,其实二者熟悉之后的效率差不多。而hibernate还能够自动建表等等,这样的好处就在于你带着这个程序...
描述了ibatis与hibernate的主要区别
ibatis,hibernate 中文参考文档
springMVC+ibatis+hibernate+spring+boostrap框架
Ibatis Hibernate 分析 比较 区别
ibatis和hibernate相比较, 做了一个整理, 包括他们的配置, 配置文件的编写.
jbpm4.4整合spring2.5(ibatis与hibernate全整合)
基于SpringMvc基础上嵌套上jbpm框架和用了双数据库架构,ibatis和Hibernate,完整的代码,包括测试代码!
springMVC+ibatis+hibernate+spring+boostrap框架的lib包
Java面试题56.ibatis和hibernate有什么不同.mp4
javaweb,struts,spring,ibatis,hibernate,ajax等API及帮助文档很全
hibernate下载 : http://sourceforge.net/projects/hibernate/files/hibernate3/--3.XX版本 ...比如:ibatis-2.3.0.677.jar, spring 可在下载你需要的版本: http://www.springsource.org/download
一直以来ibatis的分页都是通过滚动ResultSet实现的,应该算是逻辑分页吧。逻辑分页虽然能很干净地独立于特定数据库,但...本文讲述的就是如何在不重新编译ibatis源码的前提下,为ibatis引入hibernate式的物理分页机制。