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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap