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, after new business expansion or information technology upgrade, data service The smooth upgrade of the system will be a huge challenge, often leading to the reconstruction of the entire data service system, which will be a very heavy burden on the enterprise

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

Embodiment 1

[0049] figure 1 It is a flow chart of a code generation method provided by 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. 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 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, and from the perspective of enterprise data resource management, realizes the division of busines...

Embodiment 2

[0079] In this embodiment, MDA separates the model of the software system into a platform-independent model PIM and a specific platform model PSM, and at the same time unifies them through conversion rules, trying to get rid of the dilemma caused by requirement changes in this way. 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 specific platform model PSM is a specific platform-related model. In the MDA framework, first use a platform-independent modeling language to build a platform-independent model PIM, and then convert the PIM to generate a platform-dependent model PSM according to the mapping rules of a specific platform and implementation language, and finally generate application code and tests frame.

[0080] In order to realize the data service system of the enterprise data center, we established a platform-independent model OOBPM (business model), which...

Embodiment 3

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

[0093] Wherein, the first obtaining module 310 is used to obtain model metadata, wherein the model metadata includes at least two types of data, professional model, logical model, physical model, and professional model, association between logical model and physical model relation;

[0094] A storage module 320, configured to store the model metadata into a metamodel, wherein the metamodel is a library structure;

[0095] The secon...

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