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

Code generation method and device

A code generation and execution method technology, applied in the computer field, can solve a large number of repetitive work and other problems, and achieve the effects of reducing repetitive development, improving robustness, and facilitating maintenance

Pending Publication Date: 2021-12-14
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiments of the present invention provide a code generation method and device, which can solve the problem of a large amount of repetitive work in entity definition in existing project development

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 and device
  • Code generation method and device
  • Code generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0033] figure 1 is a schematic diagram of the main flow of the code generation method according to the first embodiment of the present invention, such as figure 1 As shown, the code generation method includes:

[0034] Step S101, receiving a code generation request of a program to be developed, creating a java project, and then invoking a preset import model, obtaining a...

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 and device, and belongs to the technical field of computers. According to one specific embodiment of the invention, the method comprises the following steps that: a code generation request of a to-be-developed program is received, a java project is established, then a preset import model is called, and a jar package corresponding to the java project is obtained and imported; and a class package is created in the java project, so as to establish a configuration class of a preset type based on the class package, and an execution class generated by a code is created according to the configuration class, so as to create a corresponding execution method in the execution class. Therefore, with the code generation method and device provided by the embodiments of the invention adopted, the problem that a large amount of repetitive work exists in entity definition in existing project development can be solved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a code generation method and device. Background technique [0002] In daily project development, there are often some repetitive and tedious tasks. For example: for the entities defined in the project, in order to complete the business flow, it is necessary to define new methods, update methods, pagination query methods, and primary key query methods, etc., and then write the mapping files corresponding to the entity classes one by one, which is very time-consuming. force. [0003] In the process of realizing the present invention, it is found that at least the following problems exist in the prior art: [0004] In daily project development, a large number of JAVABEAN entity definitions, MAPPING file writing, and commonly used methods such as adding, deleting, modifying and checking are repeated. The work is very repetitive, which is not conducive to code cleanliness ...

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): G06F8/30G06F40/186G06F16/22G06F16/25G06F9/445
CPCG06F8/315G06F40/186G06F16/2282G06F16/25G06F9/44521
Inventor 李晓菲
Owner BEIJING WODONG TIANJUN INFORMATION TECH 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