摘要
面向对象技术和关系数据库技术的协同工作存在“阻抗不匹配”的问题。本文首先对基于J2EE的持久层实现方式进行分析与比较,然后借鉴常用设计模式和主流持久层框架的设计理念,搭建了一个以Hibernate为核心组件的轻量级持久层框架。
In this paper, a lightweight persistence layer framework is designed, which uses Hibemate as an Object-Relational Mapper and POJO as implementation of business objects. One of the most creative works here is using abstract factory pattern and proxy pattern to improve the traditional technique to encapsulate the persistence layer, which called DAO pattern.
作者
梁国业
廖健平
LIANG Guo-ye, LIAO Jian-ping2(1.Maoming Collge,Maoming 525000,China;2.Actions Semiconductor Co, Ltd,Zhuhai 5i9085,China)
出处
《电脑知识与技术》
2008年第4期88-89,95,共3页
Computer Knowledge and Technology
关键词
对象-关系映射
持久层
设计模式
框架
Object-Relational Mapping
Persistence Layer
Designing Patterns
Framework