【摘要】针对面向对象设计与关系数据库设计之间的不匹配问题,介绍了一种映射方法O/R Mapping。在使用对象模型时,常常通过对象之间的关系来进行访问;而根据关系理论,则通过表的连接、行列的复制来实施数据的存取。其不同使两种机制的结合并不理想,当为访问数据寻找一种合适的方法时,则不匹配就成为了主要矛盾。使用对象/关系映射可以解决该矛盾。关 键 词 对象/关系映射; 对象; 关联; 完整性及关系约束There are two ways of using object model.One way is, generally, accessing object model by the relation of the object, another way is , according to Relation theory, accessing or saving data by connecting tables or copying columns or rows. As the basal difference mentioned above,the integrate of two function is far from perfect. It is not match between OO design and relation data base design.So we need a mapping method——O/R Mapping to solve the inconsistency to get a successful design.
猜您喜欢
推荐帖子
推荐内容
开源项目推荐 更多
热门活动
热门器件
用户搜过
随便看看
热门下载
热门标签
评论