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

Computer Engineering ›› 2010, Vol. 36 ›› Issue (7): 71-72,7. doi: 10.3969/j.issn.1000-3428.2010.07.025

• Software Technology and Database • Previous Articles     Next Articles

Object Relation Mapping Architecture Based on C++

LEI Wen-ping, HAN Jie, DONG Xin-min, WANG Li-ya   

  1. (School of Mechanical Engineering, Zhengzhou University, Zhengzhou 450001)
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-04-05 Published:2010-04-05

基于C++的对象关系映射架构

雷文平,韩 捷,董辛旻,王丽雅   

  1. (郑州大学机械工程学院,郑州 450001)

Abstract: In order to resolve the tight coupling problem between domain model and database, this paper proposes Object Relation Mapping(ORM) architecture based on C++. It gives some key technologies and sectional implement codes about abstract base classes, mapper registry classes, realizes relation mapping and lifecycle management of domain object through intelligent pointer. The ORM subsystem designed and realized based on this architecture is applied in equipment state monitor and security evaluation system, its operation situation is well.

Key words: Object Relation Mapping(ORM), intelligent pointer, C++ language

摘要: 为了解决领域模型和数据库之间的紧耦合问题,提出基于C++的对象关系映射(ORM)架构。给出抽象基类、映射器注册表类的关键技术和部分实现代码,通过智能指针实现领域对象的关系映射和生命周期管理。基于该架构设计并实现的ORM子系统,已应用于设备状态检测与安全评价系统中,运行情况良好。

关键词: 对象关系映射, 智能指针, C++语言

CLC Number: