CN103383645A - Code generation method and system - Google Patents

Code generation method and system Download PDF

Info

Publication number
CN103383645A
CN103383645A CN2013103228585A CN201310322858A CN103383645A CN 103383645 A CN103383645 A CN 103383645A CN 2013103228585 A CN2013103228585 A CN 2013103228585A CN 201310322858 A CN201310322858 A CN 201310322858A CN 103383645 A CN103383645 A CN 103383645A
Authority
CN
China
Prior art keywords
file
class file
generate
title
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013103228585A
Other languages
Chinese (zh)
Other versions
CN103383645B (en
Inventor
吴步丹
乔秀全
宋永超
陈俊亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201310322858.5A priority Critical patent/CN103383645B/en
Publication of CN103383645A publication Critical patent/CN103383645A/en
Application granted granted Critical
Publication of CN103383645B publication Critical patent/CN103383645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

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

Code generating method and system
Technical field
The present invention relates to the service code generation technique, relate in particular to a kind of code generating method and system.
Background technology
Current, use Code Generator to assist project development, solve the nonstandard problem of developer's code, the reusability, the reduction cost of development that improve development efficiency and software code become trend, but current Code Generator can not generate service code according to the concrete framework of difference project to be developed, can only generate the code with subsidiary function, to realize the basic service logic that increases, deletes, changes, looks into; Simultaneously, the current code Core Generator carries out the control of service logic change, but configures or learn existing regulation engine and realize more complicated, and cost is higher.
Therefore, how generate service code according to the concrete framework of difference software to be developed efficiently, and reduce cost of development, become problem demanding prompt solution.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of code generating method and system, generates service code with the concrete framework according to difference project to be developed efficiently, and reduces cost of development.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of code generating system, this system comprises:
Static list read module is used for reading the code of the control of static list, determines the attribute of described control according to the code of the control of described static list; Described control is encapsulated as control object, and attribute corresponding according to described control object is stored to described control object in corresponding variables set;
The server page (JSP, Java Server Pages) generation module, be used for the attribute according to described variables set control object, generate the JavaScript code of corresponding different attribute variables set, according to the code of the control of described JavaScript code and described static list, generate the view layer jsp file;
The Data Persistence Layer generation module, be used for reading the business datum table of form data operational correspondence, data structure according to described business datum table, generate corresponding with the title of the described business datum table respectively simple JAVA object of simple JAVA object (POJO, Plain Old Java Objects) class file and DAO (DAO, Data Access Object) class file;
The controller generation module, be used for attribute and the example of described POJO class file and the example of described DAO class file according to described variables set control object, generate the controller java class file corresponding with the title of described static list, described controller java class file comprises: process the controller java class file of checking form request and the controller java class file of processing the submission form request;
The configuration file generation module is used for generating extend markup language (XML Extensible Markup Language) configuration file, and the attribute of action (action) node in described XML configuration file is corresponding with the title of described static list.
Preferably, described JSP generation module is also for the jsp file that generates the title sky corresponding with the title of described static list; Add in described jsp file and outreach Cascading Style Sheet (CSS, Cascading Style Sheet) file, static HTML (Hypertext Markup Language) (HTML, Hypertext Markup Language) label; The code of the control of described static list is added in main body (body) label in described jsp file;
Determine to read in described static list the variable of the control of form data, generate the label front end code corresponding with the variable of the described control that reads form data and be the JavaScript code of the variable assignments of the described control that reads form data, and write described jsp file; The variable of the control of the data non-NULL of determining to preserve form data in described static list and requiring to preserve generates the JavaScript code of checking form controls legitimacy, and writes described jsp file;
Generation prevents the JavaScript code of list resubmit, and writes described jsp file.
Preferably, described Data Persistence Layer generation module, also be used for generating the POJO class file of the sky corresponding with the title of described business datum table, obtain field type and the field name of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described POJO class file;
Generate the DAO class file of the sky corresponding with the title of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described DAO class file;
Instantiation the first string variable (String Builder), the source file of the basic operation that increases, deletes, changes, looks into of Hibernate interface is called in generation, described source file is write a described String Builder, and a described String Builder is write described DAO class file.
Preferably, described controller generation module also is used for generating the first controller java class file of processing the sky of checking form request, and the title of described the first controller java class file is corresponding with the title of described static list;
Instantiation the 2nd String Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described the first controller java class file, obtain (getter) of the instance variable of described the first controller java class file of generation correspondence uses and arranges (setter) application, and described getter application and described setter application are added in a described String Builder;
The execution (execute) that generates corresponding described the first controller class java class file is used, and described execute is used add in a described String Builder;
A described String Builder is added in described the first controller java class file;
Generate the second controller java class file of the sky of processing the submission form request, the title of described second controller java class file is corresponding with the title of described static list;
Instantiation Three S's tring Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described second controller java class file, the getter that generates corresponding described instance variable uses and the setter application, and described getter application and described setter application are added in described Three S's tring Builder;
The execute that generates corresponding described second controller java class file uses, and described execute is used add in described Three S's tring Builder;
Described Three S's tring Builder is added in described second controller java class file.
Preferably, described configuration file generation module also is used for generating empty XML configuration file, generates corresponding bag (package) node and the action node corresponding with described static form name in described XML configuration file, generates empty XML configuration file;
Instantiation the 4th String Builder adds the statement of described XML configuration file in described the 4th String Builder to;
Generate the package node of XML configuration file and the action node corresponding with the title of described static list, and add in described the 4th String Builder;
Described the 4th String Builder is write the XML configuration file of described sky.
The present invention also provides a kind of code generating method, and the method comprises:
Read the code of the control of static list, determine the attribute of described control according to the code of the control of described static list; Described control is encapsulated as control object, and attribute corresponding according to described control object is stored to described control object in corresponding variables set;
According to the attribute of control object in described variables set, generate the JavaScript code of corresponding different attribute variables set, according to the code of the control of described JavaScript code and described static list, generate the view layer jsp file;
Read the business datum table, according to the data structure of described business datum table, generate corresponding with the title of described business datum table respectively simple JAVA object POJO class file and DAO DAO class file;
Attribute and the example of described POJO class file and the example of described DAO class file according to control object in described variables set, generate the controller java class file corresponding with the title of described static list, described controller java class file comprises: process the controller java class file of checking form request and the controller java class file of processing the submission form request;
Generate the XML configuration file, the attribute of the action node in described XML configuration file is corresponding with the title of described static list.
Preferably, described attribute according to control object in described variables set generates the JavaScript code of corresponding different attribute variables set, and the code according to the control of described JavaScript code and described static list generates the view layer jsp file, comprising:
Generate the jsp file of the title sky corresponding with the title of described static list; Add in described jsp file and outreach CSS file, static html tag; The code of the control of described static list is added in main body body label in described jsp file;
Determine to read in described static list the variable of the control of form data, generate the label front end code corresponding with the variable of the described control that reads form data and be the JavaScript code of the variable assignments of the described control that reads form data, and write described jsp file; The variable of the control of the data non-NULL of determining to preserve form data in described static list and requiring to preserve generates the JavaScript code of checking form controls legitimacy, and writes described jsp file;
Generation prevents the JavaScript code of list resubmit, and writes described jsp file.
Preferably, the described business datum table that reads according to the data structure of described business datum table, generates corresponding with the title of described business datum table respectively POJO class file and DAO DAO class file, comprising:
Generate the POJO class file of the sky corresponding with the title of described business datum table, obtain field type and the field name of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described POJO class file;
Generate the DAO class file of the sky corresponding with the title of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described DAO class file;
Instantiation the one String Builder, the source file of the basic operation that increases, deletes, changes, looks into of Hibernate interface is called in generation, described source file is write a described String Builder, and a described String Builder is write described DAO class file.
Preferably, described attribute and the example of described POJO class file and the example of described DAO class file according to control object in described variables set generate the controller java class file corresponding with the title of described static list, comprising:
Generate the first controller java class file of processing the sky of checking form request, the title of described the first controller java class file is corresponding with the title of described static list;
Instantiation the 2nd String Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described the first controller java class file, the getter of the instance variable of corresponding described the first controller java class file of generation uses and setter uses, and described getter application and described setter application are added in a described String Builder;
The execute that generates corresponding described the first controller class java class file uses, and described execute is used add in a described String Builder;
A described String Builder is added in described the first controller java class file;
Generate the second controller java class file of the sky of processing the submission form request, the title of described second controller java class file is corresponding with the title of described static list;
Instantiation Three S's tring Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described second controller java class file, the getter that generates corresponding described instance variable uses and the setter application, and described getter application and described setter application are added in described Three S's tring Builder;
The execute that generates corresponding described second controller java class file uses, and described execute is used add in described Three S's tring Builder;
Described Three S's tring Builder is added in described second controller java class file.
Preferably, described generation expandable mark language XML configuration file, the attribute of the action action node in described XML configuration file is corresponding with the title of described static list, comprising:
Generate empty XML configuration file, generate corresponding package node and the action node corresponding with described static form name in described XML configuration file, generate empty XML configuration file;
Instantiation the 4th String Builder adds the statement of described XML configuration file in described the 4th String Builder to;
Generate the package node of XML configuration file and the action node corresponding with the title of described static list, and add in described the 4th String Builder;
Described the 4th String Builder is write the XML configuration file of described sky.
Provided by the present invention based on model-view-controller (MVC, Model-View-Controller) technical scheme of the code generation of the workflow webpage (Web) of framework application, generate the front end code of the human activity page by the JSP generation module, generate Web backstage code by controller generation module, Data Persistence Layer generation module and configuration file generation module, improve the efficient of developer's development stream Web application system, and improved code quality.
Description of drawings
Fig. 1 a is the composition structural representation of the code generating system of the embodiment of the present invention;
Fig. 1 b is the composition structural representation of the another code generating system of the embodiment of the present invention;
Fig. 2 is the realization flow schematic diagram of the code generating method of the embodiment of the present invention;
Fig. 3 is the schematic diagram of code generating system in Workflow system of the embodiment of the present invention;
Fig. 4 is the application schematic diagram one of code generating system in workflow Web development environment of the embodiment of the present invention;
Fig. 5 is the application schematic diagram two of code generating system in the workflow applied environment of the embodiment of the present invention;
Fig. 6 is the realization flow schematic diagram that reads static list of the embodiment of the present invention;
Fig. 7 is the realization flow schematic diagram of the generation front end JSP view file of the embodiment of the present invention;
Fig. 8 is the realization flow schematic diagram of rear end code file of the generation Hibernate persistent layer of the embodiment of the present invention;
Fig. 9 is the realization flow schematic diagram of the generation Struts2 key-course code file of the embodiment of the present invention;
Figure 10 is the realization flow schematic diagram of the generation Struts2XML configuration file of the embodiment of the present invention.
Embodiment
Basic thought of the present invention is: after exploitation, the project development that the practical item development cost often concentrates on the operation flow module completed, the processing of leak (Bug), modification and the amended Bug of business change post code are processed and code tester.If adopt the mode based on template aspect the code generation, the user can carry out corresponding stencil design according to different frameworks; Come design flow diagram with process definition language in the workflow development environment, be designed for the static list of man-machine interactively by static Form Designer for each artificial task activity node, read and analyze the code of the control of static list by code generating system, to generate object code.
Below in conjunction with drawings and the specific embodiments, the present invention is described in further detail again.
Fig. 1 a is the composition structural representation of the code generating system of the embodiment of the present invention, as shown in Figure 1a, comprising:
Static list read module 11 is used for reading the code of the control of static list, determines the attribute of described control according to the code of the control of described static list; Described control is encapsulated as control object, and attribute corresponding according to described control object is stored to described control object in corresponding variables set;
JSP generation module 12, be used for the attribute according to described variables set control object, generate the JavaScript code of corresponding different attribute variables set, according to the code of the control of described JavaScript code and described static list, generate the view layer jsp file;
Data Persistence Layer generation module 13 for the business datum table that reads the form data operational correspondence, according to the data structure of described business datum table, generates corresponding with the title of described business datum table respectively POJO class file and DAO class file;
Controller generation module 14, be used for attribute and the example of described POJO class file and the example of described DAO class file according to described variables set control object, generate the controller java class file corresponding with the title of described static list, described controller java class file comprises: process the controller java class file of checking form request and the controller java class file of processing the submission form request;
Configuration file generation module 15 is used for generating the XML configuration file, and the attribute of the action action node in described XML configuration file is corresponding with the title of described static list.
Preferably, described JSP generation module is also for the jsp file that generates the title sky corresponding with the title of described static list; Add in described jsp file and outreach CSS file, static html tag; The code of the control of described static list is added in body label in described jsp file;
Determine to read in described static list the variable of the control of form data, generate the label front end code corresponding with the variable of the described control that reads form data and be the JavaScript code of the variable assignments of the described control that reads form data, and write described jsp file; The variable of the control of the data non-NULL of determining to preserve form data in described static list and requiring to preserve generates the JavaScript code of checking form controls legitimacy, and writes described jsp file;
Generation prevents the JavaScript code of form data resubmit and the JavaScript code that the legitimacy of described static list is verified, and writes described jsp file.
Preferably, described Data Persistence Layer generation module, also be used for generating the POJO class file of the sky corresponding with the title of described business datum table, obtain field type and the field name of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described POJO class file;
Generate the DAO class file of the sky corresponding with the title of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described DAO class file;
Instantiation the first string variable (String Builder), the source file of the basic operation that increases, deletes, changes, looks into of Hibernate interface is called in generation, described source file is write a described String Builder, and a described String Builder is write described DAO class file.
Preferably, described controller generation module also is used for generating the first controller java class file of processing the sky of checking form request, and the title of described the first controller java class file is corresponding with the title of described static list;
Instantiation the 2nd String Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described the first controller java class file, obtain (getter) of the instance variable of described the first controller java class file of generation correspondence uses and arranges (setter) application, and described getter application and described setter application are added in a described String Builder;
The execution (execute) that generates corresponding described the first controller class java class file is used, and described execute is used add in a described String Builder;
A described String Builder is added in described the first controller java class file;
Generate the second controller java class file of the sky of processing the submission form request, the title of described second controller java class file is corresponding with the title of described static list;
Instantiation Three S's tring Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described second controller java class file, the getter that generates corresponding described instance variable uses and the setter application, and described getter application and described setter application are added in described Three S's tring Builder;
The execute that generates corresponding described second controller java class file uses, and described execute is used add in described Three S's tring Builder;
Described Three S's tring Builder is added in described second controller java class file.
Described configuration file generation module also is used for generating empty XML configuration file, generates corresponding package node and the action node corresponding with described static form name in described XML configuration file, generates empty XML configuration file;
Instantiation the 4th String Builder adds the statement of described XML configuration file in described the 4th String Builder to;
Generate the package node of XML configuration file and the action node corresponding with the title of described static list, and add in described the 4th String Builder;
Described the 4th String Builder is write described XML configuration file.
Fig. 1 b is the composition structural representation of the another code generating system of the embodiment of the present invention, as shown in Fig. 1 b, except comprising above-mentioned static list read module 11, JSP generation module 12, Data Persistence Layer generation module 13, controller generation module 14 and configuration file generation module 15, this system can also comprise:
Workflow engine 16 is used for scheduling JSP generation module 12 and generates view layer jsp file, i.e. the front end code of the Web application system human activity page; Corresponding POJO class file and DAO class file, controller java class file and the XML configuration files of generating of data dispatching persistent layer generation module 13, controller generation module 14 and configuration file generation module 15, i.e. the Web backstage code of the Web application system human activity page.
Fig. 2 is the realization flow schematic diagram of the code generating method of the embodiment of the present invention, as shown in Figure 2, comprising:
Step 201: read the code of the control of static list, determine the attribute of described control according to the code of the control of described static list; Described control is encapsulated as control object, and attribute corresponding according to described control object is stored to described control object in corresponding variables set;
Step 202: according to the attribute of control object in described variables set, generate the JavaScript code of corresponding different attribute variables set, according to the code of the control of described JavaScript code and described static list, generate the view layer jsp file;
In a preferred implementation of step 202, generate the jsp file of the title sky corresponding with the title of described static list; Add in described jsp file and outreach CSS file, static html tag; The code of the control of described static list is added in main body body label in described jsp file;
Determine to read in described static list the variable of the control of form data, generate the label front end code corresponding with the variable of the described control that reads form data and be the JavaScript code of the variable assignments of the described control that reads form data, and write described jsp file; The variable of the control of the data non-NULL of determining to preserve form data in described static list and requiring to preserve generates the JavaScript code of checking form controls legitimacy, and writes described jsp file;
Generation prevents the JavaScript code of list resubmit, and writes described jsp file.
Step 203: read the business datum table, according to the data structure of described business datum table, generate corresponding with the title of described business datum table respectively simple JAVA object POJO class file and DAO DAO class file;
In a preferred implementation of step 203, generate the POJO class file of the sky corresponding with the title of described business datum table, obtain field type and the field name of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described POJO class file;
Generate the DAO class file of the sky corresponding with the title of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described DAO class file;
Instantiation the one String Builder, the source file of the basic operation that increases, deletes, changes, looks into of the Object Relation Mapping framework Hibernate interface of open source code is called in generation, described source file is write a described String Builder, and a described String Builder is write described DAO class file.
Step 204: according to attribute and the example of described POJO class file and the example of described DAO class file of control object in described variables set, generate the controller java class file corresponding with the title of described static list, described controller java class file comprises: process the controller java class file of checking the request of business datum table and process the controller java class file of submitting the request of business datum table to;
In a preferred implementation of step 204, generate the first controller java class file of processing the sky of checking form request, the title of described the first controller java class file is corresponding with the title of described static list;
Instantiation the 2nd String Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described the first controller java class file, the getter of the instance variable of corresponding described the first controller java class file of generation uses and setter uses, and described getter application and described setter application are added in a described String Builder;
The execute that generates corresponding described the first controller class java class file uses, and described execute is used add in a described String Builder;
A described String Builder is added in described the first controller java class file;
Generate the second controller java class file of the sky of processing the submission form request, the title of described second controller java class file is corresponding with the title of described static list;
Instantiation Three S's tring Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described second controller java class file, the getter that generates corresponding described instance variable uses and the setter application, and described getter application and described setter application are added in described Three S's tring Builder;
The execute that generates corresponding described second controller java class file uses, and described execute is used add in described Three S's tring Builder;
Described Three S's tring Builder is added in described second controller java class file.
Step 205: generate the XML configuration file, the attribute of the action node in described XML configuration file is corresponding with the title of described static list.
In a preferred implementation of step 205, generate empty XML configuration file, generate corresponding package node and the action node corresponding with described static form name in described XML configuration file.Generate empty XML configuration file;
Instantiation the 4th String Builder adds the statement of described XML configuration file in described the 4th String Builder to;
Generate the package node of XML configuration file and the action node corresponding with the title of described static list, and add in described the 4th String Builder;
Described the 4th String Builder is write described XML configuration file.
The below is as an example of repair reporting system example and in conjunction with Fig. 3~Fig. 5, and code generating method and the system of the embodiment of the present invention is further described.
Fig. 3 is the position view of code generating system in Workflow system of the embodiment of the present invention, as shown in Figure 3, the user comes operational administrative to report workflow webpage Web application system for repairment by reporting the flow process control desk for repairment, flow process developer is by required static list in static Form Designer design repair reporting system, code generating system with the attribute of the control of the static list of repair reporting system as input, and the file of the required object code of human task node operation in the output repair reporting system, at last the file of object code is saved in the position of server appointment.
Fig. 4 is the application schematic diagram one of code generating system in workflow Web development environment of the embodiment of the present invention, as shown in Figure 4, repair reporting system flow process developer sets up engineering by workflow development environment guide, then designs visually the required static list of repair reporting system human task node and repair reporting system flow definition file by the flow scheme design device.Be specially: double-click the human task node in worktable, select static list corresponding to this node, the invoke code generation system generates object code corresponding to this human task node in repair reporting system, comprises JSP view file and POJO class file, DAO class file, controller file and XML configuration file.
Fig. 5 is the application schematic diagram two of code generating system in the workflow applied environment of the embodiment of the present invention, as shown in Figure 5, in the repair reporting system application process, when process flow operation when reporting the human activity node for repairment, after the user initiates to read the request of static list to the repair reporting system server, the business datum of controller generation module 14 reading and saving in reporting the business datum table for repairment of code generating system, and return to the front end JSP view file of generation to the user according to the result that data are processed, after this front end JSP view file is showed business datum to the user, the user can obtain to fill in the control that reports business datum for repairment to this static state list and report business datum for repairment, and be submitted to the background server of repair reporting system, the Data Persistence Layer generation module 13 of code generating system will report business datum for repairment and be persisted in Service Database, and call the application programming interfaces (API of the end human task node that workflow engine 16 provides, Application Program Interface), make and report flow process continuation circulation for repairment.
It is example that website in following heating installation repair reporting system is reported the artificial active node of application for repairment, and the code generating method of the embodiment of the present invention is described in further detail.
report for initiating the website the static list that the artificial active node of application is designed for man-machine interaction visually for repairment, with static list called after newApply, static list comprises 7 controls, be respectively and report people's name (attribute name=" userName " for repairment, type=" read notNull ", table=" user ", field=" userName "), report people's landline telephone (attribute name=" telephone " for repairment, type=" read ", table=" user ", field=" telephone "), (attribute is name=" address " to report people family address for repairment, type=" read notNull ", table=" user ", field=" address "), (attribute is name=" mobile " to report people's mobile phone for repairment, type=" read notNull ", table=" user ", field=" mobile "), (attribute is name=" ceilName " to report boiler room, place, people residential quarter for repairment, type=" read ", table=" user ", field=" ceilName "), (attribute is name=" repairType " to report type for repairment, type=" insert ", table=" repair ", field=" repairType "), (attribute is name=" repairDetail " to report content control for repairment, type=" insert ", table=" repair ", field=" repairDetail ").
The website of double-clicking in process flow diagram is reported the artificial task node of application for repairment, select the website for this human task node and report the application list for repairment, click and determine rear invoke code generation system, Fig. 6 is the realization flow schematic diagram that reads static list of the embodiment of the present invention, as shown in Figure 6, comprise the following steps:
Step 601: the control that reports for repairment in the static list of application is read in circulation;
Step 602~step 603: the type of the control in the judgement list, according to the self-defined type attribute of form controls, different form controls is classified;
The form controls of business datum table data is read in type=" read " expression, and business datum table data comprise to be reported people's landline telephone for repairment, report people family address for repairment, reports people's mobile phone for repairment and report boiler room, place, residential quarter for repairment; The form controls of user service data and write into Databasce is obtained in type=" insert " expression, comprises reporting type for repairment and reporting 2 form controls of content for repairment; Type=" notNull " expression non-NULL type control comprises and reports people's name, home address and mobile phone for repairment.The type property value can be with the space separately representing a plurality of values, as to report people's name control for repairment be to read the control of business datum table data type and the control of non-void type, corresponding type=" read notNull ".
Step 604: the object that dissimilar form controls is corresponding is saved in corresponding control object variables set;
the control of list is encapsulated as object, attribute is the attribute of the control of correspondence, userName comprises type as object, name, table and field attribute, dissimilar control is saved in corresponding control object variables collection, particularly, object corresponding to form controls that reads business datum table data stored in the variables set readSet that reads type, the object that the control of non-NULL type is corresponding stores in the variables set notNullSet of non-NULL type, object corresponding to control that obtains user service data stores in the variables set insertSet that writes type.
Fig. 7 is the realization flow schematic diagram of the generation front end JSP view file of the embodiment of the present invention, as shown in Figure 7, comprises the following steps:
Step 701: generate the JSP empty file;
The JSP dummy file name of corresponding human task node is called newApply.JSP, the corresponding static form name newApply of file name.
Step 702: write static part and HTML (Hypertext Markup Language) (HTML, Hyper Text Markup Language) label to jsp file;
Write static part in newApply.JSP, comprise JSP head statement<%@page language=" java " contentType=" text/html; Charset=UTF-8 " pageEncoding=" UTF-8 " %〉and html tag<html<head〉<meta〉<body 〉.
Step 703: read the code of static list and will add in jsp file<body〉in label;
Step 704: travel through and preserve the form controls variable that reads business datum table data in the variables set that reads type;
Traversal is preserved the form controls variable that reads business datum table data type, for these form controls variablees generate Struts2 label front end codes and to the JavaScript code of form controls variable assignments, as var userName=document.getElementById (' userName'); UserName.value='<s:property value=" user.userName "/〉 '.
Step 705: the Javascript code that generates checking form controls legitimacy;
Travel through and preserve and write the form controls variable that obtains user service data that categorical variable is concentrated, form controls variable for wherein non-NULL type, for example report people's name, home address, mobile phone for repairment, generate the Javascript code of checking form controls legitimacy.
Step 706: generate the JavaScript code that prevents the list resubmit;
Step 707: generate the JavaScript code that static list is carried out legitimate verification;
Step 707: the code of above-mentioned generation is write in empty jsp file, obtain generating complete front end JSP view file, it is deposited in specified path/web/content/JSP.
Fig. 8 is the realization flow schematic diagram of rear end code file of the generation Hibernate persistent layer of the embodiment of the present invention, as shown in Figure 8, comprises the following steps:
Step 801: travel through all business datum tables;
Obtain all business datum tables of heating installation repair reporting system such as user, repair by Jdbc, and travel through all business datum tables.
Step 802: the data structure of obtaining the business datum table;
The information such as title, field type and field name that comprise the business datum table.
Step 803: generate the POJO lasting classification file of the same name with the business datum table;
Comprise User and Repair.
Step 804: all fields of traversal business datum table;
Step 805: the member variable of Related fields is write POJO lasting classification file;
Step 806: generate with the business datum table in field name and the attribute variable of java class type corresponding to type, these attributes are write in the POJO class file.
Step 807: generate POJO class file and DAO class file.
The file that generates stores specified path/src/com/model/ into.
generate empty DAO java class (DAO) according to the title of business datum table, as UserDAO, RepairDAO, the Java vchar class source code variable String Builder of instantiation sky, be used for preserving DAO class source code, with business datum table user, the POJO class User that repair is corresponding, Repair is respectively as this DAO class UserDAO, the attribute user of RepairDAO, repair, the additions and deletions that the Hibernate interface is called in generation change the source code of the basic operation of looking into, and these source codes are added in the source code variable, the String Builder variable data of preserving DAO class source code is written in empty DAO file, generate final DAO class file, the file that generates is put in the path/src/com/DAO/ of appointment.
Fig. 9 is the realization flow schematic diagram of the generation Struts2 key-course code file of the embodiment of the present invention, as shown in Figure 9, comprises the following steps:
Step 901: obtain heating installation repair reporting system all business datum table user, repair, the business datum table that searching loop is all;
Step 902: generate the empty java class file of first Struts2 controller;
Generation is for the treatment of the empty java class file of first Struts2 controller of user's the business form request of checking, and the title of the corresponding static list of the title of file is as ApplyFirstAction.
Step 903: the variable String Builder of first Struts2 controller class file source code of instantiation;
Instantiation is used for preserving the vchar source code variable StringBuilder of first Struts2 controller class file.
Step 904: the getter and the setter that generate instance variable use, and add in String Builder;
The DAO lasting classification example that traffic table is corresponding and POJO class example are as the instance variable of controller class, as comprising the variable's attribute of User and UserDao type in class ApplyFirst, the getter and the setter that generate these control variables use, and it is added in character variable String Builder.
Step 905: the execute that generates first Struts2 controller class uses, and adds in String Builder;
The execute that generates first Struts2 controller class uses, and at the query interface of method intrinsic call DAO class example, as user=userDao.get (), and calls the API of workflow engine, and the method body is added in String Builder variable.
Step 906: generate first final Struts2action file, and be placed in the path/src/com/action/ of appointment;
The source code variable of first Struts2action is written in the empty file of first sturts2action, generates first final Struts2action file, and file is placed in the path/src/com/action/ of appointment.
Step 907: generate the empty java class file of second Struts2 controller;
Generate the empty java class file of second Struts2 controller, the title of file is according to the title of list, as ApplySecondAction.
Step 908: the variable String Builder of second Struts2 controller class file source code is preserved in instantiation;
Step 909: the getter and the setter that generate instance variable use, and add in String Builder;
The DAO lasting classification example that traffic table is corresponding and POJO class example are as the instance variable of controller class, and the getter and the setter that generate these instance variables use, and it is added in String Builder.
Step 910: the execute that generates second Struts2 controller class uses, and adds String Builder to;
The execute that generates second Struts2 controller class uses, and at the persistence interface such as the repairDao.add (repair) that use intrinsic call DAO class example, and calls the API of workflow engine, adds the application body to StringBuilder.
Step 911: generate second final Struts2action file.
The source code variable of second Struts2action is written in the empty file of second struts2action, generates second final Struts2action file, and file is placed in the path/src/com/action of appointment.
Figure 10 is the realization flow schematic diagram of the generation Struts2XML configuration file of the embodiment of the present invention, as shown in figure 10, comprises the following steps:
Step 1001: generate empty Struts2XML configuration file;
File name is struts.XML.
Step 1002: the variable String Builder of instantiation;
Be used for preserving the source code of Struts2XML configuration file.
Step 1003: the statement of XML configuration file is added in String Builder;
Step 1004: generate the package node of XML configuration file, add in String Builder;
Step 1005: generate the action node according to static list;
The attribute name of action node and class be according to the title of static list, as<action name=" app lyFirst " class=" com.action.ApplyFistAction〉" and<action name=" applySecond " c lass=" ApplySecondAction " 〉;
Data in the source code variable are write in the empty configuration file of XML, generate final XML configuration file, and be placed on the path of appointment.
Step 1004: generate the action node and give property value;
Generate the action node according to static list, the attribute name of action node and class be according to the title of static list, as<action name=" applyFirst " class=" com.action.ApplyFistAction〉" and<action name=" applySecond " class=" ApplySecondAction " 〉.
Data in the source code variable are write in the empty configuration file of XML, generate final XML configuration file, and be placed on the path of appointment.
According to the file destination of above-mentioned generation, dispose flow definition, the start flow example carries out man-machine interaction.
All the other human task node persons of accepting audit application, duty manager send code generation process that maintenance man, duty manager upload maintenance result, the person's of accepting call-on back by phone in like manner, all can generate front end JSP view file corresponding to this human task node, background controller Struts Action file, POJO file, DAO file and add action dom node corresponding to human task node in the struts.xml configuration file.
The code generating system of embodiment of the present invention record can adopt present popular developing instrument Eclipse card format that deployment is installed, the user only need to copy to plug-in unit the catalogue of corresponding developing instrument, choose the auxiliary generation of carrying out code in the project of correspondence, thereby shortened developer's construction cycle, improved development efficiency;
And, the code generating system of embodiment of the present invention record is being made innovation aspect the code generation of service logic, for example, the developer only needs visually to design static list by Form Designer, and set the various Custom Attributes of form controls, just can generate the code that meets the related service logic.All codes that code generating system generates all are based on template, template can be configured according to the different demands of company, thereby the automatic generation to code has realized customizable, generates on quality and code formation efficiency and all is greatly improved at code availability, code.
The above is only preferred embodiment of the present invention, is not to limit protection scope of the present invention.

Claims (10)

1. a code generating system, is characterized in that, this system comprises:
Static list read module is used for reading the code of the control of static list, determines the attribute of described control according to the code of the control of described static list; Described control is encapsulated as control object, and attribute corresponding according to described control object is stored to described control object in corresponding variables set;
Java server page JSP generation module, be used for the attribute according to described variables set control object, generate the JavaScript code of corresponding different attribute variables set, according to the code of the control of described JavaScript code and described static list, generate the view layer jsp file;
The Data Persistence Layer generation module, be used for reading the business datum table of form data operational correspondence, according to the data structure of described business datum table, generate corresponding with the title of described business datum table respectively simple JAVA object POJO class file and DAO DAO class file;
The controller generation module, be used for attribute and the example of described POJO class file and the example of described DAO class file according to described variables set control object, generate the controller java class file corresponding with the title of described static list, described controller java class file comprises: process the controller java class file of checking form request and the controller java class file of processing the submission form request;
The configuration file generation module is used for generating the expandable mark language XML configuration file, and the attribute of the action action node in described XML configuration file is corresponding with the title of described static list.
2. system according to claim 1, is characterized in that,
Described JSP generation module is also for the jsp file that generates the title sky corresponding with the title of described static list; Add in described jsp file and outreach Cascading Style Sheet CSS file, static HTML (Hypertext Markup Language) html tag; The code of the control of described static list is added in main body body label in described jsp file;
Determine to read in described static list the variable of the control of form data, generate the label front end code corresponding with the variable of the described control that reads form data and be the JavaScript code of the variable assignments of the described control that reads form data, and write described jsp file; The variable of the control of the data non-NULL of determining to preserve form data in described static list and requiring to preserve generates the JavaScript code of checking form controls legitimacy, and writes described jsp file;
Generation prevents the JavaScript code of list resubmit, and writes described jsp file.
3. system according to claim 1, is characterized in that,
Described Data Persistence Layer generation module, also be used for generating the POJO class file of the sky corresponding with the title of described business datum table, obtain field type and the field name of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described POJO class file;
Generate the DAO class file of the sky corresponding with the title of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described DAO class file;
Instantiation the first string variable String Builder, the source file of the basic operation that increases, deletes, changes, looks into of Hibernate interface is called in generation, described source file is write a described String Builder, and a described String Builder is write described DAO class file.
4. system according to claim 3, is characterized in that,
Described controller generation module also is used for generating the first controller java class file of processing the sky of checking form request, and the title of described the first controller java class file is corresponding with the title of described static list;
Instantiation the 2nd String Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described the first controller java class file, the getter that obtains of the instance variable of corresponding described the first controller java class file of generation uses and arranges the setter application, and described getter application and described setter application are added in a described String Builder;
The execution execute that generates corresponding described the first controller class java class file uses, and described execute is used add in a described String Builder;
A described String Builder is added in described the first controller java class file;
Generate the second controller java class file of the sky of processing the submission form request, the title of described second controller java class file is corresponding with the title of described static list;
Instantiation Three S's tring Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described second controller java class file, the getter that generates corresponding described instance variable uses and the setter application, and described getter application and described setter application are added in described Three S's tring Builder;
The execute that generates corresponding described second controller java class file uses, and described execute is used add in described Three S's tring Builder;
Described Three S's tring Builder is added in described second controller java class file.
5. according to claim 1 to 4 any one described system, is characterized in that,
Described configuration file generation module also is used for generating empty XML configuration file, generates corresponding bag package node and the action node corresponding with described static form name in described XML configuration file, generates empty XML configuration file;
Instantiation the 4th String Builder adds the statement of described XML configuration file in described the 4th String Builder to;
Generate the package node of XML configuration file and the action node corresponding with the title of described static list, and add in described the 4th String Builder;
Described the 4th String Builder is write the XML configuration file of described sky.
6. a code generating method, is characterized in that, the method comprises:
Read the code of the control of static list, determine the attribute of described control according to the code of the control of described static list; Described control is encapsulated as control object, and attribute corresponding according to described control object is stored to described control object in corresponding variables set;
According to the attribute of control object in described variables set, generate the JavaScript code of corresponding different attribute variables set, according to the code of the control of described JavaScript code and described static list, generate the view layer jsp file;
Read the business datum table, according to the data structure of described business datum table, generate corresponding with the title of described business datum table respectively simple JAVA object POJO class file and DAO DAO class file;
Attribute and the example of described POJO class file and the example of described DAO class file according to control object in described variables set, generate the controller java class file corresponding with the title of described static list, described controller java class file comprises: process the controller java class file of checking form request and the controller java class file of processing the submission form request;
Generate the XML configuration file, the attribute of the action node in described XML configuration file is corresponding with the title of described static list.
7. method according to claim 6, it is characterized in that, described attribute according to control object in described variables set, generate the JavaScript code of corresponding different attribute variables set, code according to the control of described JavaScript code and described static list, generate the view layer jsp file, comprising:
Generate the jsp file of the title sky corresponding with the title of described static list; Add in described jsp file and outreach CSS file, static html tag; The code of the control of described static list is added in body label in described jsp file;
Determine to read in described static list the variable of the control of form data, generate the label front end code corresponding with the variable of the described control that reads form data and be the JavaScript code of the variable assignments of the described control that reads form data, and write described jsp file; The variable of the control of the data non-NULL of determining to preserve form data in described static list and requiring to preserve generates the JavaScript code of checking form controls legitimacy, and writes described jsp file;
Generation prevents the JavaScript code of list resubmit, and writes described jsp file.
8. method according to claim 6, it is characterized in that, the described business datum table that reads is according to the data structure of described business datum table, generate corresponding with the title of described business datum table respectively POJO class file and DAO DAO class file, comprising:
Generate the POJO class file of the sky corresponding with the title of described business datum table, obtain field type and the field name of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described POJO class file;
Generate the DAO class file of the sky corresponding with the title of described business datum table, write the attribute corresponding with the field type of described business datum table and field name to described DAO class file;
Instantiation the one String Builder, the source file of the basic operation that increases, deletes, changes, looks into of Hibernate interface is called in generation, described source file is write a described String Builder, and a described String Builder is write described DAO class file.
9. system according to claim 8, it is characterized in that, described attribute and the example of described POJO class file and the example of described DAO class file according to control object in described variables set generate the controller java class file corresponding with the title of described static list, comprising:
Generate the first controller java class file of processing the sky of checking form request, the title of described the first controller java class file is corresponding with the title of described static list;
Instantiation the 2nd String Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described the first controller java class file, the getter of the instance variable of corresponding described the first controller java class file of generation uses and setter uses, and described getter application and described setter application are added in a described String Builder;
The execute that generates corresponding described the first controller class java class file uses, and described execute is used add in a described String Builder;
A described String Builder is added in described the first controller java class file;
Generate the second controller java class file of the sky of processing the submission form request, the title of described second controller java class file is corresponding with the title of described static list;
Instantiation Three S's tring Builder, the example of the DAO class file that described business datum table is corresponding and the example of POJO class file are as the instance variable of described second controller java class file, the getter that generates corresponding described instance variable uses and the setter application, and described getter application and described setter application are added in described Three S's tring Builder;
The execute that generates corresponding described second controller java class file uses, and described execute is used add in described Three S's tring Builder;
Described Three S's tring Builder is added in described second controller java class file.
10. the described method of according to claim 6 to 9 any one, is characterized in that, described generation XML configuration file, and the attribute of the action action node in described XML configuration file is corresponding with the title of described static list, comprising:
Generate empty XML configuration file, generate corresponding package node and the action node corresponding with described static form name in described XML configuration file, generate empty XML configuration file;
Instantiation the 4th String Builder adds the statement of described XML configuration file in described the 4th String Builder to;
Generate the package node of XML configuration file and the action node corresponding with the title of described static list, and add in described the 4th String Builder;
Described the 4th String Builder is write the XML configuration file of described sky.
CN201310322858.5A 2013-07-29 2013-07-29 Code generating method and system Active CN103383645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310322858.5A CN103383645B (en) 2013-07-29 2013-07-29 Code generating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310322858.5A CN103383645B (en) 2013-07-29 2013-07-29 Code generating method and system

Publications (2)

Publication Number Publication Date
CN103383645A true CN103383645A (en) 2013-11-06
CN103383645B CN103383645B (en) 2016-05-11

Family

ID=49491445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310322858.5A Active CN103383645B (en) 2013-07-29 2013-07-29 Code generating method and system

Country Status (1)

Country Link
CN (1) CN103383645B (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744680A (en) * 2014-01-16 2014-04-23 北京邮电大学 Method and device for business process processing
CN104461513A (en) * 2014-11-21 2015-03-25 山东航天信息有限公司 Method and device for generating form interface
CN104932904A (en) * 2015-07-14 2015-09-23 福建农林大学 Configurable database programming mode aiming at intelligent smart home
CN105068812A (en) * 2015-08-19 2015-11-18 深圳联友科技有限公司 Form generation method and device
CN105824619A (en) * 2016-03-10 2016-08-03 四川交通职业技术学院 Code generator integrated based on Spring MVC framework, Apache Shiro framework and MyBatis framework
CN106357719A (en) * 2015-07-17 2017-01-25 Sap欧洲公司 Page-based incident correlation for network applications
CN106775788A (en) * 2015-11-19 2017-05-31 中国科学院声学研究所 A kind of method for automatically generating and running JavaScript file
CN106886390A (en) * 2015-12-15 2017-06-23 大唐软件技术股份有限公司 A kind of Java object generation and conversion method and Java object generation and conversion equipment
CN107633008A (en) * 2017-08-10 2018-01-26 阿里巴巴集团控股有限公司 Web project data processing method, device, server and system
CN107977236A (en) * 2017-12-21 2018-05-01 上海智臻智能网络科技股份有限公司 Generation method, terminal device, storage medium and the question answering system of question answering system
CN109558125A (en) * 2018-12-17 2019-04-02 太原市高远时代科技有限公司 A kind of implementation method improving general information management software development efficiency
CN109739546A (en) * 2018-12-26 2019-05-10 深圳乐信软件技术有限公司 Property parameters acquisition methods, device, storage medium and server
CN110045982A (en) * 2019-03-28 2019-07-23 宋子杰 A kind of embedded system configuration method based on source code polymerization
CN110069246A (en) * 2019-03-28 2019-07-30 北京众智益成科技有限公司 The plateform system and its application that a kind of Java Web application is quickly developed
CN110175022A (en) * 2019-04-25 2019-08-27 平安科技(深圳)有限公司 Automatically generate the method, apparatus and storage medium, computer equipment of POJO class
WO2019218597A1 (en) * 2018-05-14 2019-11-21 华南理工大学 Automatic construction method and system for table driven cloud-model software
CN110659027A (en) * 2019-09-20 2020-01-07 京东方科技集团股份有限公司 Code generation method and device and electronic equipment
CN111666072A (en) * 2020-06-09 2020-09-15 南京及物智能技术有限公司 Software code and document robot method
CN112052012A (en) * 2020-08-31 2020-12-08 烽火通信科技股份有限公司 XSLT and XSD-based code automatic generation method and equipment
CN112416363A (en) * 2020-12-09 2021-02-26 锐捷网络股份有限公司 Method and device for generating front-end and back-end CRUD codes
CN114035782A (en) * 2021-10-22 2022-02-11 交通运输部南海航海保障中心广州通信中心 Automatic code generation method and system based on form design and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030146937A1 (en) * 2001-09-11 2003-08-07 Lee Seung Woo Multi-level data management system
CN101697120A (en) * 2009-11-05 2010-04-21 河南辉煌科技股份有限公司 Relational database based generation method of J2EE code
CN102609503A (en) * 2012-02-02 2012-07-25 福建榕基软件股份有限公司 Method and device for generating static webpages
CN102841791A (en) * 2012-07-12 2012-12-26 上海高洁信息科技股份有限公司 Method and system for generating online form

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030146937A1 (en) * 2001-09-11 2003-08-07 Lee Seung Woo Multi-level data management system
CN101697120A (en) * 2009-11-05 2010-04-21 河南辉煌科技股份有限公司 Relational database based generation method of J2EE code
CN102609503A (en) * 2012-02-02 2012-07-25 福建榕基软件股份有限公司 Method and device for generating static webpages
CN102841791A (en) * 2012-07-12 2012-12-26 上海高洁信息科技股份有限公司 Method and system for generating online form

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744680A (en) * 2014-01-16 2014-04-23 北京邮电大学 Method and device for business process processing
CN103744680B (en) * 2014-01-16 2017-02-15 北京邮电大学 Method and device for business process processing
CN104461513A (en) * 2014-11-21 2015-03-25 山东航天信息有限公司 Method and device for generating form interface
CN104461513B (en) * 2014-11-21 2018-01-09 山东航天信息有限公司 A kind of method and device for generating form interface
CN104932904A (en) * 2015-07-14 2015-09-23 福建农林大学 Configurable database programming mode aiming at intelligent smart home
CN106357719A (en) * 2015-07-17 2017-01-25 Sap欧洲公司 Page-based incident correlation for network applications
CN105068812B (en) * 2015-08-19 2018-07-13 深圳联友科技有限公司 A kind of list generation method and device
CN105068812A (en) * 2015-08-19 2015-11-18 深圳联友科技有限公司 Form generation method and device
CN106775788A (en) * 2015-11-19 2017-05-31 中国科学院声学研究所 A kind of method for automatically generating and running JavaScript file
CN106775788B (en) * 2015-11-19 2019-08-20 中国科学院声学研究所 A method of automatically generating and run JavaScript file
CN106886390A (en) * 2015-12-15 2017-06-23 大唐软件技术股份有限公司 A kind of Java object generation and conversion method and Java object generation and conversion equipment
CN105824619A (en) * 2016-03-10 2016-08-03 四川交通职业技术学院 Code generator integrated based on Spring MVC framework, Apache Shiro framework and MyBatis framework
CN107633008A (en) * 2017-08-10 2018-01-26 阿里巴巴集团控股有限公司 Web project data processing method, device, server and system
CN107977236A (en) * 2017-12-21 2018-05-01 上海智臻智能网络科技股份有限公司 Generation method, terminal device, storage medium and the question answering system of question answering system
CN107977236B (en) * 2017-12-21 2020-11-13 上海智臻智能网络科技股份有限公司 Question-answering system generation method, terminal device, storage medium and question-answering system
WO2019218597A1 (en) * 2018-05-14 2019-11-21 华南理工大学 Automatic construction method and system for table driven cloud-model software
CN109558125A (en) * 2018-12-17 2019-04-02 太原市高远时代科技有限公司 A kind of implementation method improving general information management software development efficiency
CN109739546A (en) * 2018-12-26 2019-05-10 深圳乐信软件技术有限公司 Property parameters acquisition methods, device, storage medium and server
CN110069246A (en) * 2019-03-28 2019-07-30 北京众智益成科技有限公司 The plateform system and its application that a kind of Java Web application is quickly developed
CN110045982A (en) * 2019-03-28 2019-07-23 宋子杰 A kind of embedded system configuration method based on source code polymerization
CN110175022A (en) * 2019-04-25 2019-08-27 平安科技(深圳)有限公司 Automatically generate the method, apparatus and storage medium, computer equipment of POJO class
CN110175022B (en) * 2019-04-25 2023-10-13 平安科技(深圳)有限公司 Method and device for automatically generating POJO class, storage medium and computer equipment
CN110659027A (en) * 2019-09-20 2020-01-07 京东方科技集团股份有限公司 Code generation method and device and electronic equipment
CN111666072A (en) * 2020-06-09 2020-09-15 南京及物智能技术有限公司 Software code and document robot method
CN112052012A (en) * 2020-08-31 2020-12-08 烽火通信科技股份有限公司 XSLT and XSD-based code automatic generation method and equipment
CN112052012B (en) * 2020-08-31 2022-11-11 烽火通信科技股份有限公司 XSLT and XSD-based code automatic generation method and equipment
CN112416363A (en) * 2020-12-09 2021-02-26 锐捷网络股份有限公司 Method and device for generating front-end and back-end CRUD codes
CN112416363B (en) * 2020-12-09 2024-03-19 锐捷网络股份有限公司 Method and device for generating front-end and back-end CRUD codes
CN114035782A (en) * 2021-10-22 2022-02-11 交通运输部南海航海保障中心广州通信中心 Automatic code generation method and system based on form design and storage medium

Also Published As

Publication number Publication date
CN103383645B (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN103383645B (en) Code generating method and system
CN109062567B (en) B/S structure-based information management system rapid development platform
CN100520717C (en) Service assemblage based on MVC and method for page moulding development WEB platform
JP5099982B2 (en) Method and apparatus for generating an automation-based user interface with complete flexibility
CN104360859B (en) A kind of visual service development method and system
CN107807913A (en) A kind of form design system and method based on web
CN106250156B (en) Constructing method of component and device, component call method and apparatus
CN103853543A (en) Method used for quickly constructing forms in enterprise information system development process
CN110069246A (en) The plateform system and its application that a kind of Java Web application is quickly developed
CN102520966B (en) Method for prompting codes and device
CN104375818A (en) System and method for achieving general data form inputting through configuration files
CN104424338A (en) Automatic generation device and automatic generation method for web system
JP2008507032A (en) Object process graph application controller viewer
CN101909082A (en) Model-driven grid portal configuration system and method
CN105204863A (en) Technical documentation for law violation data auditing system
CN108228762B (en) Method and system for configuring master database universal templates
CN104834715A (en) Website generating method and system based on components and container
CN101876998A (en) Method and system for editing data
US9075891B2 (en) Method and device for editing an object represented in a web page
Sun et al. The Exploration and Practice of MVVM Pattern on Android Platform
Cysneiros et al. Traceability and completeness checking for agent-oriented systems
CN116909553A (en) Page online development and local compiling operation system
CA2498541A1 (en) System and method for presentation of wireless application data using repetitive ui layouts
US20060026522A1 (en) Method and apparatus for revising data models and maps by example
CN109558125A (en) A kind of implementation method improving general information management software development efficiency

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant