iBATIS 三个版本小细节对比
iBATIS 三个版本小细节对比
sqlMapConfig.xml 中的异同:
iBATIS_v1 | iBATIS_v2 | iBATIS_v3 | |
DOCTYPE | sql-map-config.dtd | sql-map-config-2.dtd | ibatis-3-config.dtd |
configuration标签 | <sql-map-config> </sql-map-config> | <sqlMapConfig> </sqlMapConfig> | <configuration> </configuration> |
sqlMap标签 | <sql-map recource../> | <sqlMap recource../> | <mappers> <mapper recource.. /> </mappers> |
sqlMap 映射中的异同
iBATIS_v1 | iBATIS_v2 | iBATIS_v3 | |
DOCTYPE | sql-map.dtd | sql-map-2.dtd | ibatis-3-mapper.dtd |
sqlMap标签 | <sql-map> </sql-map> | <sqlMap> </sqlMap> | <mapper> </mapper> |
statement标签 | <mapped-statement> </mapped-statement> | <select></select> <update></update> <statement></>… | <select></select> <update></update> |
参数表示 | #id# | #id# | #{id} |
sqlMap API的异同
iBATIS_v1 | iBATIS_v2 | iBATIS_v3 | |
执行对象 | SqlMap | SqlMapClient | SqlSession |
得到执行 | XMLSqlMapBuilder-> builderSqlMap | SqlMapClientBuilder-> builderSqlMap | SqlSessionFactory-> openSession |
执行 | excuteQueryForObject | queryForObject.. queryForList… update… | selectOne… selectList… update… |
相关推荐
86417413 2020-11-25
simonzhao0 2020-11-23
rise 2020-11-22
wfs 2020-10-29
projava 2020-11-14
aydh 2020-11-12
huimeiad 2020-11-23
NANGEBOKE 2020-11-23
wuguangbin0 2020-11-17
skyplay0 2020-11-17
魅惑青花瓷 2020-11-11
Freshairx 2020-11-10
applecarelte 2020-10-16
链块学院 2020-11-06
TaoTaoFu 2020-11-06
不知道该写啥QAQ 2020-11-12