摘要
数据持久层实现一直是基于J2EE的应用系统开发重点.现有多种持久层实现方案中,ORM是一种较为理想的解决方案,以Hibernate为代表的ORM实现技术在某些应用领域存在着不足之处.介绍了iBatis SQL Map建立ORM机制的原理和特点,结合某物流系统的开发,给出了SQLMap建立ORM的主要内容,包括映射关系、SQL Map配置文件和SQL Map API等.实践表明,iBatis SQL Map的ORM实现技术非常方便、灵活,并较好地满足了物流系统的应用要求.
The data persistence tier plays a very important role in the J2EE application. In many existing solutions of data persistence tier, ORM is a better one. But many ORM products such as the most famous ORM product - Hibernate, have their defects in some application areas. This paper firstly describes the basic principles of iBaties SQL Map and the characteristics. Then, how the SQL Map creates an ORM in a logistics system, in which includes mapping relationships, SQL Map configuration and SQL Map APIs, are described in this paper. Practice shows that the implementation of ORM based on iBaties SQL Map is convenient and flexible. It meets the application requirements in the logistics system.
出处
《浙江工业大学学报》
CAS
2008年第1期72-76,共5页
Journal of Zhejiang University of Technology