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
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...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com