Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for automatically generating code based on data model drive

A data model and automatic generation technology, applied in the field of code generation, can solve the problems of time-consuming, labor-intensive, low-efficiency, etc., and achieve the effect of reducing technical requirements, improving efficiency, and being less prone to errors

Active Publication Date: 2013-03-13
QTONE EDUCATION GROUP (GUANGDONG) CO LTD
View PDF3 Cites 63 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It aims to solve the problems of time-consuming, labor-intensive and low-efficiency in the existing code writing by programmers manually

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
  • Method and system for automatically generating code based on data model drive
  • Method and system for automatically generating code based on data model drive

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention provides a data model-driven automatic code generation method and system. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0025] see figure 1 , which is a flow chart of the data model-driven automatic code generation method of the present application. As shown in the figure, the data model-driven automatic code generation method includes the following steps:

[0026] S1. According to user settings, establish the user configuration information, the user configuration information includes the package name and class name for code generation, the main table that needs to generate code, and the association of the main table;

[0027] S2. According to the user configuration infor...

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 method and a system for automatically generating a code based on a data model drive. The method comprises the steps as follows: firstly, establishing user configuration information according to user settings, wherein the user configuration information comprises a package name generated by the code, a class name, a primary table required to generate the code and an association of the primary table; secondly, generating an xml (extensive markup language) file capable of being parsed by a preset server side by the system according to the user configuration information; and lastly, parsing the xml file by the server side, and generating the standard code according to a code template. Compared with the prior art, the method has the advantages of high efficiency, standard and uniform code, high readability, strong maintainability and the like; and meanwhile, the operation is visualized, convenient and quick, errors are not easily caused, and the technical requirements are lowered.

Description

technical field [0001] The invention relates to the technical field of code generation, in particular to a data model-driven automatic code generation method and system. Background technique [0002] The code is the source file written by the programmer in the language supported by the development tool, and it is a set of clear rule systems that represent information in a discrete form by characters, symbols or signal symbols. The principles of code design include unique certainty, standardization and versatility, scalability and stability, easy recognition and memory, striving for shortness and uniform format, and easy modification. Source code is a branch of code. In a sense, source code is equivalent to code. In modern programming languages, source code can appear in book or tape form, but the most common format is a text file, typically for the purpose of compiling a computer program. The ultimate goal of computer source code is to translate human-readable text into co...

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): G06F9/44
Inventor 陈炽昌敖汉鹤孙友华林汉升
Owner QTONE EDUCATION GROUP (GUANGDONG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products