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

Code generation method and system

A code generation and code technology, applied in the direction of program control devices, etc., can solve problems such as irregular codes of developers, complex implementation of rule engines, and generation of business codes

Active Publication Date: 2013-11-06
BEIJING UNIV OF POSTS & TELECOMM
View PDF4 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, it has become a trend to use code generation tools to assist project development, solve the problem of developers' code irregularities, improve development efficiency and software code reuse rate, and reduce development costs. The business code generated by the specific framework can only generate code with auxiliary functions to realize the basic business logic of adding, deleting, modifying, and checking; at the same time, the current code generation tool controls business logic changes, but configuration or learning existing The implementation of the rule engine is more complicated and the cost is higher

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] The basic idea of ​​the present invention is: the actual project development cost is often concentrated in the development of business process modules, the processing of loopholes (Bugs) after project development is completed, the modification of codes after business changes, and the modified Bug processing and code testing. If a template-based method is adopted in code generation, users can design corresponding templates according to different architectures; in the workflow development environment, use the process definition language to design flow charts, and design each human task activity node through a static form designer For the static form used for human interaction, the code generation system reads and analyzes the code of the control of the static form to generate the target code.

[0071] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0072] Figure 1a It is a schematic...

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 system. The code generation system comprises a static state sheet reading module, a Java server page (JSP) generation module, a data persistence layer generation module, a controller generation module and a configuration file generation module. The JSP generation module generates view JSP files, the data persistence layer generation module generates simple JAVA object (POJO) type files and data access object (DAO) type files, the controller generation module generates controller Java type files, and the configuration file generation file generates extensible markup language (XML) configuration files. By adopting the code generation method and system, service codes can be generated efficiently according to specific frameworks of different software to be developed, and development cost can be reduced.

Description

technical field [0001] The invention relates to business code generation technology, in particular to a code generation method and system. Background technique [0002] At present, it has become a trend to use code generation tools to assist project development, solve the problem of developers' code irregularities, improve development efficiency and software code reuse rate, and reduce development costs. The business code generated by the specific framework can only generate code with auxiliary functions to realize the basic business logic of adding, deleting, modifying, and checking; at the same time, the current code generation tool controls business logic changes, but configuration or learning existing The implementation of the rule engine is more complicated and the cost is higher. [0003] Therefore, how to efficiently generate business codes according to the specific frameworks of different software to be developed and reduce development costs has become an urgent pro...

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
Inventor 吴步丹乔秀全宋永超陈俊亮
Owner BEIJING UNIV OF POSTS & TELECOMM
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