摘要
数据持久层实现一直是基于三层结构应用系统开发重点,现有多种持久层实现方案中,ORM是一种较为理想的解决方案,以Hibernate为代表的ORM实现技术在某些应用领域存在着不足之处。本文介绍了iBatis建立ORM机制的原理和特点,结合实际应用系统的开发,给出了SQLMap建立ORM的主要内容,包括映射关系、SQLMap配置文件和SQLMapAPI等,实践表明,iBatisSQLMap的ORM实现技术非常方便、灵活,并较好地满足了应用系统的各项要求.
Achieving data access layer has always been the core task of developing three-tiered architecture Model system. Among those different scenarios we currently have for achieving data access layer, ORM technique is the ideal solution. However, ORM, typically Hibernate, has some weaknesses in some areas. This article tells how to develop ORM system by using IBatis and what its features are, and explains the contents of developing ORM through SQL Map, including Mapping relationship, SQL Map configuration files and SQL Map API etc. The fact shows that ORM technique based on iBatis SQL Map is very convenient, flexible and satisfies all the requirements by MS System
出处
《电脑编程技巧与维护》
2009年第6期54-56,共3页
Computer Programming Skills & Maintenance