一种基于Hibernate与DAO模式的通用数据持久化的设计方案  被引量:2

A Scheme of General Data Persistence Based on Hibernate'and DAO Pattern

在线阅读下载全文

作  者:郭晓[1] 郭晓金[1] 周文静[1] 

机构地区:[1]重庆邮电大学信号与信息处理重庆市重点实验室,重庆400065

出  处:《电光系统》2012年第3期43-46,共4页Electronic and Electro-optical Systems

基  金:重庆市科委自然科学基金(CSTC,2011BB2143).

摘  要:数据持久化层不仅向业务逻辑层提供面向对象的API,而且封装数据访问细节,为系统中的数据库操作提供统一的接口。本文结合DAO设计模式和Hibernate框架给出了一种通用数据持久化层的实现方案,并详细介绍了Hibernate配置文件与映射文件和DAO模式在通用数据持久化层中的实现过程。该方案很好地解决了系统设计中扩展性和移植性等问题。Data persistent layer provides object oriented API to the business logic layer and encapsulates the data access details, providing unified interface for the database system operation. In this paper, we propose the implementation of general data persistent layer combining with DAO design pattern and Hibernate frame, and intro- duce its implementation process of Hibernate configuration file and mapping file and DAO pattern. The scheme solves the problems of expansibility and transplantation of the system design.

关 键 词:数据持久化 DAO设计模式 HIBERNATE框架 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象