Code generation method, device and equipment and storage medium

A code generation and automatic generation technology, applied in the computer field, can solve the problems of large workload of interface documents, heavy enterprise, reconstruction of data service system, etc., to ensure sustainable development and achieve the effect of automatic generation

Inactive Publication Date: 2019-04-02
CHINA NAT OFFSHORE OIL CORP
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The data service system based on the standard data interface method requires a lot of data service interface standard formulation and development work, and the workload of interface document compilation and testing is also very large. Moreover, aft

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
  • Code generation method, device and equipment and storage medium
  • Code generation method, device and equipment and storage medium
  • Code generation method, device and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0048] Example 1

[0049] figure 1 It is a flowchart of a code generation method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of code generation. The method can be executed by the code generation device in the embodiment of the present invention, and the device can use software and / or or hardware implementation, such as figure 1 As shown, the method specifically includes the following steps:

[0050] S110: Acquire model metadata, where the model metadata includes at least two data types, a professional model, a logical model, a physical model, and an association relationship between the professional model, the logical model, and the physical model.

[0051] Wherein, the data type may be at least two of C data type, C++ data type, C sharp data type and Java data type.

[0052] Among them, the professional model is based on the results of business research and analysis, from the perspective of enterprise data resource management, ...

Example Embodiment

[0078] Embodiment 2

[0079] In this embodiment, MDA separates the model of the software system into a platform-independent model PIM and a platform-specific model PSM, and at the same time unifies them through transformation rules, in this way, it tries to get rid of the dilemma brought about by changing requirements. The platform-independent model PIM is a high-level abstraction of the system, which does not include any information related to the implementation technology; the platform-specific model PSM is a platform-specific model. In the MDA framework, a platform-independent modeling language is used to build a platform-independent model PIM, and then according to the mapping rules of the specific platform and implementation language, the PIM is converted to generate a platform-dependent model PSM, and finally the application code and test are generated. frame.

[0080] In order to realize the data service system of the enterprise data center, we established a platform-i...

Example Embodiment

[0091] Embodiment 3

[0092] image 3 It is a schematic structural diagram of a code generation apparatus provided in Embodiment 3 of the present invention. This embodiment is applicable to the case of code generation, the apparatus may be implemented in software and / or hardware, and the apparatus may be integrated in any device that provides the function of code generation, such as image 3 As shown, the code generation apparatus specifically includes: a first acquisition module 310 , a storage module 320 , a second acquisition module 330 and a first generation module 340 .

[0093] The first acquisition module 310 is configured to acquire model metadata, wherein the model metadata includes at least two data types, specialized models, logical models, physical models, and associations between specialized models, logical models, and physical models relation;

[0094] a storage module 320, configured to store the model metadata into a metamodel, where the metamodel is a libra...

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 discloses a code generation method, device and equipment and a storage medium. The method comprises the steps that model metadata is acquired, and the model metadata comprises at least two data types, a professional model, a logic model, a physical model and an incidence relation among the professional model, the logic model and the physical model; storing the model metadata into a meta-model which is of a library structure; obtaining target data in the meta-model through the integrated development environment; according to the technical scheme, the codes are automatically generated according to the target data, automatic generation and smooth upgrading of data service zero code maintenance can be achieved, the application of the framework lays a good foundation for continuous application of an informatization new technology, and sustainable development of an enterprise data service system is guaranteed.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to a code generation method, device, equipment and storage medium. Background technique [0002] The enterprise data center involves many businesses, wide coverage, and miscellaneous management data types. At the same time, considering the development of enterprise business and the continuous upgrading of information technology, it is necessary to consider the application of advanced technology and architecture to realize the data service system of the enterprise data center. Advanced, efficient and scalable. [0003] (1) With the continuous development of enterprise business, data center, as the basic project of informatization, not only needs to consider the support of existing business, but also is equally important for the expansion of future business. [0004] (2) To provide data services through the data service platform, a large amount of implementation wo...

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
IPC IPC(8): G06F8/35G06F8/41
CPCG06F8/35G06F8/447
Inventor 廖爱明陈国青赵晖高建祎韩玉林侯明雨蔡军曾小明王智
Owner CHINA NAT OFFSHORE OIL CORP
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