Method for generating code by frame-based code generation tool

A code generation and code technology, applied in the field of code generation, can solve problems such as the lack of support or optimization in the generation of intermediate tables, the inability to guarantee the uniformity and standardization of the code, and the inability to guarantee the correctness of the code. Development cycle, the effect of reducing duplication of coding and variance

Active Publication Date: 2017-10-20
深圳互联天下信息技术有限公司
View PDF9 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In enterprise-level WEB development, repetitive work is often involved. It is tedious manual work to process a large amount of the same code repeatedly, and the process of copying and pasting cannot guarantee the uniformity and standardization of the code, let alone the integrity of the copy. Correctness of the code in the process
[0003] In the prior art, in the code generation process, the user needs to select repeated content multiple times, and

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 for generating code by frame-based code generation tool
  • Method for generating code by frame-based code generation tool
  • Method for generating code by frame-based code generation tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0040] In an embodiment of the method for producing code using a frame-based code generation tool in the present invention, the flow chart of the method for producing code using a frame-based code generation tool is as follows figure 1 shown. figure 1 Among them, the method for producing code using a frame-based code generation tool includes the following steps:

[0041] Step S01 Configure the database link information and code generation path: In this step, ...

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 for generating a code by a frame-based code generation tool. The method comprises the following steps that: configuring database link information and a code generation path; configuring a table name and a package name corresponding to the code, and configuring whether the table name and the package name are intermediate table information or not; checking a code option to be generated; connecting with database information; reading a template; generating a BO layer, a Dao layer, a Dao layer implementation class, a Service layer, a Service layer implementation class, mybatis, Mapper and a View layer code; when the table name and the package name are the intermediate table, generating a view layer interface code; generating an interface permission control code; if the table name and the package name are not the intermediate table, generating a query condition sub interface; generating a list sub interface; generating a new/ revised sub interface; and generating a checking sub interface. The code generation process is simple, efficiency is high, parameter verification is carried out on a front side and a service side, code robustness is good, code development cost is lowered, a development cost is shortened, and the repeated coding and the difference of the code can be reduced.

Description

technical field [0001] The invention relates to the field of code generation, in particular to a method for producing codes using a frame-based code generation tool. Background technique [0002] In the process of software development, in order to increase the stability of the system, reduce the cost of software development and maintenance, and improve the efficiency of development, many scientific research institutions and multinational companies at home and abroad have begun to conduct research on automatic code generation and have developed various code generation tool. In enterprise-level WEB development, repetitive work is often involved. It is tedious manual work to process a large amount of the same code repeatedly, and the process of copying and pasting cannot guarantee the uniformity and standardization of the code, let alone the integrity of the copy. The correctness of the code in the process. [0003] In the prior art, in the code generation process, the user n...

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
IPC IPC(8): G06F9/44
CPCG06F8/30
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