Object relationship mapping method and device based on object data model

An object-relational mapping and object data technology, applied in the computer field, can solve the problems of not supporting multi-party association, not supporting complex association, value acquisition and value setting mechanism not extensible, etc., to achieve extended versatility and support for multi-party complex associations Effect

Inactive Publication Date: 2018-12-11
陈瑞
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) Multi-party associations are not supported, only two-party associations are supported (see complex associations (that is, associations with attributes);
[0006] (2) Cannot describe the associated object (a special object in the object system, which is different from the entity object);
[0007] (3) Values ​​and values ​​can only be accessed through attribute accessors, and for complex objects, some attributes or associated pointers may not be open to the outside world;
[0008] (4) The value and value setting mechanism is not scalable, and does not support the business system to insert special mapping logic;

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Object relationship mapping method and device based on object data model
  • Object relationship mapping method and device based on object data model
  • Object relationship mapping method and device based on object data model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] as attached figure 1 As shown, the present invention first designs a brand-new formalized model of the object system, which is called the Object Data Model (ODM for short), and its basic building blocks are entity type and association type. The entity type describes the entity object in the object system, and contains at least one attribute, which is used to describe the attribute of the object. Entity type and relationship mapping, the object described by it is mapped to the tuple of the relationship; the attribute of the entity type is mapped to the attribute of the relationship, and the value of the attribute described by it is mapped to the element of the tuple. An association type (also called an association) describes a chain in an object system (that is, a relationship between objects), and contains at least two association ends, which are used to describe each end of the chain. The association is explicit if there is an association object representing the chain...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the technical field of computes and discloses an object relationship mapping method and device based on an object data model. The method is based on a metadata system for describing an object system and a mapping rule between the object system and a relational system, and the method comprises a step of constructing an object system formal model and naming the model the object data model, a step of storing an object to a relation storage system, a step of inquiring the object from the relation storage system, a step of creating an associated end object, and a step of loading an associated reference object. According to the method of the invention, by constructing the object data model and performing object relation mapping based on the object data model, the versatility of an ORM program can be expanded, and a multi-party complex association is supported.

Description

technical field [0001] The invention belongs to the technical field of computers, and specifically relates to an object-relational mapping method and device based on an object data model. Background technique [0002] The idea of ​​object-oriented software development regards the software system as objects and the relationship between objects (that is, the object system), the operation of the system is reflected in the interaction between objects, and the storage of system data is regarded as the persistence of the current state of the object operate. In current software engineering, it is often necessary to store data in relational databases for application access, and almost all storage systems use relational data structures. Since the structure of the object system is often significantly different from the relational data structure, this problem has not been effectively solved. Therefore, since the popularization of object-oriented development, how to "squeeze" objects ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 陈瑞
Owner 陈瑞
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products