Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2009, Vol. 35 ›› Issue (20): 76-77. doi: 10.3969/j.issn.1000-3428.2009.20.026

• Software Technology and Database • Previous Articles     Next Articles

Design and Implementation of Data Persistence Model Based on JPA

OU Li-yuan, QIU Hui-zhong, BAI Ya-ru   

  1. (School of Computer Science and Engineering, University of Electronic Science and Technology, Chengdu 610054)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-10-20 Published:2009-10-20

基于JPA的数据持久化模型设计与实现

欧黎源,邱会中,白亚茹   

  1. (电子科技大学计算机科学与工程学院,成都 610054)

Abstract: Persistence technology of Java Database Connectivity(JDBC) based on SQL and object-oriented persistent technology based on Object/Relation Mapping(ORM) make the system in high coupling. Aiming at such problem, this paper researches Java Persistence API(JPA) ORM technology, JPA model and JPA interfaces, designs and implements a flexible data persistence model, which uncouples with ORM framework and reduces the coupling of the system, so that it is easy to develop object persistence and accelerates the developing speed of application systems.

Key words: Java Persistence API(JPA), data persistence technology, Object/Relation Mapping(ORM)

摘要: 基于SQL的JDBC持久化技术和基于对象/关系映射(ORM)的面向对象持久化技术都会导致系统紧耦合。针对上述问题,通过研究Java持久化API(JPA) ORM技术、JPA模型和JPA接口,提出并实现一种灵活的数据持久化模型。该模型与ORM框架松耦合,可以简化对象持久化的开发,加快应用系统的开发速度。

关键词: Java持久化API, 数据持久化技术, 对象/关系映射

CLC Number: