Code generation method and code generation device

A code generation and code technology, applied in the computer field, can solve problems such as difficult post-maintenance, troublesome code writing, low efficiency, etc., and achieve the effect of saving development time and easy post-maintenance

Pending Publication Date: 2021-11-26
深圳市蜜蜂互联网络科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to provide a code generation method and a code generation device, aiming to solve the problems of troublesome code writing, low efficiency and difficult post-maintenance in the prior art

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0036] The embodiment of the invention discloses a code generation method and a code generation device for generating corresponding codes according to a database table. The code generation method provided by the example of the present invention mainly includes: database configuration saving, different data sources can be selected, multiple tables can be selected at one time, package names can be dynamically specified, project structures can be dynamically selected, and more complex ones can be customized according to business needs Code, not only back-end code, but also front-end code, database scr...

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 is suitable for the technical field of computers, and provides a code generation method and a code generation device. The code generation method comprises: displaying a data table corresponding to a data source on a first interface in response to the operation of selecting the data source on the first interface, and obtaining table field information of the selection operation is obtained in response to the selection operation on the data table; and reading the corresponding code template from the first storage position according to the table field information, updating the target variable in the code template according to the table field information, and finally converting the code template after the target variable is updated to obtain a target code. According to the embodiment of the invention, various code templates with variables can be provided, the code template can be determined according to the selection result after the user selects the corresponding data source and the table field information, and the target code can be obtained after the variables in the code template are updated into the table field information, so that the development time is greatly saved, the code style is unified, and later maintenance is easy.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a code generation method and a code generation device. Background technique [0002] The existing code generator can only generate a single table at a time, and can only generate corresponding entity classes and some fixed simple classes, which is not flexible enough. [0003] When it is necessary to generate multiple forms or implement different functions, software technicians are required to write relevant codes, which is inefficient, and because of different software technicians, the code styles written are also different, which is not easy to maintain later. Contents of the invention [0004] The technical problem to be solved by the present invention is to provide a code generation method and a code generation device, aiming to solve the problems of troublesome code writing, low efficiency, and difficulty in later maintenance in the prior art. [0005] The p...

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/35G06F16/22
CPCG06F8/355G06F16/2282
Inventor 陈兴吉
Owner 深圳市蜜蜂互联网络科技有限公司
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