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

Code generation method and device

A code generation and code technology, applied in the direction of program control devices, etc., to achieve the effect of improving development efficiency

Inactive Publication Date: 2010-05-26
广东金宇恒科技有限公司
View PDF1 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the open source framework provides a wealth of template technology, the template technology can only solve a small part of the problems of the presentation layer. Next, the code volume of the display layer should account for more than 60% of the total code volume

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

[0034] The present invention will be further elaborated below in conjunction with the accompanying drawings.

[0035] Due to the B / S application basically, the required environment of the code generation method of the present invention comprises: an application server, such as: a tomcat server, and the corresponding web page of the present invention is copied to the application server, and the tomcat server is started. The code generation method of the present invention can be implemented.

[0036] The working flowchart of the code generating method of the present invention, as figure 1 As shown, it specifically includes:

[0037] Step 101: Select a display model to be generated. Generally, the display model can be customized into four modes: single table, tree + single table, master-slave table, and tree + master-slave table;

[0038] Step 102: input the man-machine model of the data model, at first, enter such as figure 2 As shown in the man-machine interface, in this m...

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 relates to a code generation method and device, which generates codes under a J2EE open source integrated framework. The method comprises the following steps: a, selecting showing types required to be generated according to service conditions; b, creating uniform models according to the conditions of data sources, wherein the data sources comprise JAVA objects, XML data, the physical table or JSON data of a relational data base; c, determining the class path of an entity class according to the conditions of the unified models; d, processing the attribute of an entity according to the conditions of the unified models; and e, generating code files according to the attribute of the entity, whrein the code files comprise background codes, foreground codes and configuration codes. The method and the device can better solve the problems of the repeating of service codes art and the standardization and unification of codes which can not be solved by the prior framework.

Description

technical field [0001] The present invention relates to program control devices, and more particularly to devices for executing specialized programs. Background technique [0002] With the development of J2EE (JAVA2 Platform Edition) technology, lightweight open source frameworks such as hibernate framework, spring framework and webwork / struts are increasingly used by software development companies for B / S business processing. These light-weight open source frameworks are characterized by lightweight, universal and good scalability, which can help solve some core technical difficulties in project development, such as: developers do not need to consider the stability, performance and expansion of the framework. [0003] However, the framework can only determine the development mode of the entire project and solve some general problems, and there are some problems that it cannot solve, such as: [0004] Duplication of business codes. Because the framework cannot know the bus...

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 广东金宇恒科技有限公司
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