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

Method and system for automatically generating codes through classification and configuration

A technology of automatic generation and classification configuration, which is applied to the system of automatic code generation, automatically generates code through classification configuration, and in the field of automatic code generation, it can solve the problems of difficult code combination and expansion, difficulty in automatic generation, and implementation complexity, etc., to achieve improvement Effects on quality, reduced effort and development time

Inactive Publication Date: 2012-10-10
SHANGHAI XUEZHI TECH
View PDF3 Cites 41 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, due to the complexity and uncertainty of the implementation of the View and Controller levels, it is difficult to automatically generate according to the configuration, and the generated code is also difficult to be combined and extended

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 codes through classification and configuration
  • Method and system for automatically generating codes through classification and configuration
  • Method and system for automatically generating codes through classification and configuration

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] The present invention provides a method and system for automatically generating codes through classification and configuration, helping software developers get rid of repetitive labor, handing 80% of the typical logic to the code generated by the tool for processing, and concentrating limited time and energy on 20% of the truly special in business logic.

[0063] This embodiment introduces the method of the present invention by taking an information management system implementing a B / S structure using J2EE technology as an example. The technical environment is as follows: use spring as the MVC framework; use hibernate as the database ORMapping tool; you can choose any database supported by hibernate for the database.

[0064] see figure 1 , the present invention discloses a method for automatically generating codes through classification configuration, said method comprising the steps of:

[0065] [Configuration information definition steps]

[0066] Classify and rec...

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 codes through classification and configuration. The method for automatically generating codes through classification and configuration comprises the following steps: recording functions of a system menu, a module, functions of each module, and definition and classification of interface content of each module; separating contents of a View layer and a Model layer in the three-layer structure of a model view controller (MVC) of the entire system program structure into files corresponding to every database table; setting a special data binding mechanism to realize the automatic synchronization of presentation content of the View layer and the data of the Model layer according to the configuration information; and enabling a Controller layer to obtain the necessary information of various kinds of logic operation of the present modules according to the configuration information through the synchronization mechanism of the View layer and the Model layer so as to accomplish the realization of the public operation, and expanding Controllers to realize the similar logics. The method and the system disclosed by the invention can automatically generate program codes according to the configuration record, greatly reduce the workload and the development time of the entire software develop period, and greatly enhance the quality of a target system at the same time.

Description

technical field [0001] The invention belongs to the technical field of computer program development, and relates to a method for automatically generating codes, in particular to a method for automatically generating codes through classification and configuration; meanwhile, the invention also relates to a system for automatically generating codes through classification and configuration. Background technique [0002] In the traditional software development method, the development of an information management system needs to go through the standard software development life cycle. For example, the typical waterfall development is divided into the following stages: demand research, general design, detailed design, program development, and unit testing. , integration testing, system testing and other processes to complete the development of the entire information management system. Due to the different project scales, the proportion of workload in each stage is slightly differe...

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 SHANGHAI XUEZHI TECH
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