计算机技术与发展
計算機技術與髮展
계산궤기술여발전
COMPUTER TECHNOLOGY AND DEVELOPMENT
2014年
12期
101-104
,共4页
持久化%对象关系映射%数据访问对象%JPA%HibernateDAOSupport
持久化%對象關繫映射%數據訪問對象%JPA%HibernateDAOSupport
지구화%대상관계영사%수거방문대상%JPA%HibernateDAOSupport
persistence%ORM%DAO%JPA%HibernateDAOSupport
在分层结构设计中,持久化层位于数据库层与业务逻辑层之间,实现了业务逻辑与数据访问的分离,给开发人员提供了便利。ORM框架是解决面向对象程序设计语言与关系数据库间存在互不匹配问题的中间方案。文中分析了几种常见持久化层实现技术的优缺点,通过对常用ORM框架技术的分析和比较,研究了一种基于Hibernate框架的ORM持久化层的设计与实现。为简化业务逻辑层调用,通过DAO模式实现了持久化层,提高了系统的开发效率和可重用性。基于Hibernate持久化层在Java企业级的应用开发中,具有较强的实用价值。
在分層結構設計中,持久化層位于數據庫層與業務邏輯層之間,實現瞭業務邏輯與數據訪問的分離,給開髮人員提供瞭便利。ORM框架是解決麵嚮對象程序設計語言與關繫數據庫間存在互不匹配問題的中間方案。文中分析瞭幾種常見持久化層實現技術的優缺點,通過對常用ORM框架技術的分析和比較,研究瞭一種基于Hibernate框架的ORM持久化層的設計與實現。為簡化業務邏輯層調用,通過DAO模式實現瞭持久化層,提高瞭繫統的開髮效率和可重用性。基于Hibernate持久化層在Java企業級的應用開髮中,具有較彊的實用價值。
재분층결구설계중,지구화층위우수거고층여업무라집층지간,실현료업무라집여수거방문적분리,급개발인원제공료편리。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 mismatc-hing 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 frame-work 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 develop-ment.The Hibernate-based persistence layer has a strong practical value in the Java enterprise application.