基于Hibernate持久化层的设计与实现  被引量:15

Design and Implementation of Hibernate-based Persistence Layer

在线阅读下载全文

作  者:张少应[1] 程传旭[1] 

机构地区:[1]西安航空学院计算机工程系,陕西西安710077

出  处:《计算机技术与发展》2014年第12期101-104,共4页Computer Technology and Development

基  金:陕西省教育自然科学项目(12JK0951)

摘  要:在分层结构设计中,持久化层位于数据库层与业务逻辑层之间,实现了业务逻辑与数据访问的分离,给开发人员提供了便利。ORM框架是解决面向对象程序设计语言与关系数据库间存在互不匹配问题的中间方案。文中分析了几种常见持久化层实现技术的优缺点,通过对常用ORM框架技术的分析和比较,研究了一种基于Hibernate框架的ORM持久化层的设计与实现。为简化业务逻辑层调用,通过DAO模式实现了持久化层,提高了系统的开发效率和可重用性。基于Hibernate持久化层在Java企业级的应用开发中,具有较强的实用价值。In the hierarchical structure design,the persistence layer lies between the database layer and business logic layer,which realizes the separation of business logic and data access,and provides convenience for the developer. The ORM framework resolves the mismatching problem of the object oriented programming language and relational database. In this paper,analyze the advantages and disadvantages of several common persistence layer implementation technology. Through analysis and comparison for the commonly used ORM framework technology,research a Hibernate framework based ORM design and implementation of the persistence layer. In order to simplify the business logic layer calls,the DAO realizes the persistence layer,which enhances the efficiency and reusability of the system development. The Hibernate- based persistence layer has a strong practical value in the Java enterprise application.

关 键 词:持久化 对象关系映射 数据访问对象 JPA HibernateDAOSupport 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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