CN106598620A - Code generation method and code generator - Google Patents

Code generation method and code generator Download PDF

Info

Publication number
CN106598620A
CN106598620A CN201611195426.2A CN201611195426A CN106598620A CN 106598620 A CN106598620 A CN 106598620A CN 201611195426 A CN201611195426 A CN 201611195426A CN 106598620 A CN106598620 A CN 106598620A
Authority
CN
China
Prior art keywords
code
configuration
files
module
planning
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.)
Pending
Application number
CN201611195426.2A
Other languages
Chinese (zh)
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.)
Shenzhen North South Internet Nationwide Financial Services Inc
Original Assignee
Shenzhen North South Internet Nationwide Financial Services Inc
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 Shenzhen North South Internet Nationwide Financial Services Inc filed Critical Shenzhen North South Internet Nationwide Financial Services Inc
Priority to CN201611195426.2A priority Critical patent/CN106598620A/en
Publication of CN106598620A publication Critical patent/CN106598620A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a code generation method and a code generator. The code generation method comprises the following steps: generating a prefix code rule according to project basic construction; configuring a code plan and a code generation template of each layer in conjunction with a Jetty plugin and an .ftl file; and applying the code generation template to an MVC (Model View Controller) three-layer framework to generate a target code. The technical scheme is code generation based on a jetty open-source plug and a freemarker framework. Through adoption of the code generation method, a code model generated in each loop can be configured flexibly; the code generation efficiency is increased; and meanwhile, the quality of codes is improved.

Description

Code generating method and code generator
Technical field
The present invention relates to computer software technical field, more particularly to code generating method and code generator.
Background technology
In project development process, always there are some repeated written in code work to service logic exploitation, such as develop ORM, POJO, the operation of database D DL etc., deal with numerous and diverse, inefficiency, easily malfunction;And adopt web collocation types code to give birth to Project development is assisted into instrument, is the effective ways for solving this problem.Code Generator mainly uses database model at present To generate, code Generation more application is in IDE.But Code Template and kind that most code generators are generated Class is all predefined, and difficult to change code structure and style, motility is not good enough, it is impossible to which the various standardization for meeting software development are opened Send out, simultaneously because code skeleton is predefined, the code of generation is all a shell type, reply each technology ring of lack of targeted Section, carries out the code building of both fixed patterns.
The content of the invention
The main object of the present invention is to provide a kind of code generating method, it is desirable to provide a kind of flexibly configurable links The code generating method of the code model for being generated.
For achieving the above object, code generating method proposed by the present invention includes step:
According to project basic building, prefix code planning is generated;
With reference to Jetty plug-in units and .ftl files, code planning and the code building template of each level are configured;
By code building template set used in MVC three-tier architectures, object code is generated.
Preferably, code planning and the step of code building template of each level with reference to Jetty plug-in units and .ftl files, are configured Suddenly include:
Allocation list is designed or .hbm.xml files, and Jetty plug-in units call .ftl files, are converted into Java code mould Type;
According to type conversion configurations and traffic table data, binding entity class .ftl file, the data of get, set method are generated Layer identification code;
According to data layer identification code and traffic table, with reference to .hbm.xml template files, ORM mapped files are generated;
According to the class in the code specification of configuration, after in the name attributes and .ftl files in hbm.xml files Sew name, generate class name, according to the method suffix in the method name prefix in configuration code specification and .ftl files, generation side Legitimate name;
According to the method name prefix in configuration code specification and the database script of configuration, the Data Control needed for generating Layer logic.
Preferably, the step of code building template set being used in MVC three-tier architectures, generation object code includes:
According to the path that the object code of page configuration or default path is preserved, object code is exported to the path specified Or in engineering, generation includes the object code of tri- levels of MVC;
The code copies generated in output directory are debugged in actual motion environment, custom service logical gate is done Exploitation.
Preferably, the step of code building template set being used in MVC three-tier architectures, generation object code includes:
According to the path that the object code of page configuration or default path is preserved, object code is exported to the path specified Or in engineering, generation includes the object code of tri- levels of MVC;
The code of output is deployed under engineering catalogue, is processed by foreground service logic.
Preferably, according to project basic building, generating the step of prefix code is planned includes:
Data Layer is planned, according to project basic building, layout data layer architecture;
Data control layer is planned, according to project basic building, layout data control layer architecture;
Business Logic is planned, according to project basic building, plans service logic layer architecture.
The present invention also proposes a kind of code generator, including:
Planning module, according to project basic building, generates prefix code planning;
Configuration module, with reference to Jetty plug-in units and .ftl files, configures code planning and the code building template of each level;
Code generation module, by code building template set used in MVC three-tier architectures, generates object code.
Preferably, the configuration module includes:
Modular converter, allocation list design or .hbm.xml files, Jetty plug-in units call .ftl files, are converted into Java code model;
Data Layer configuration module, according to type conversion configurations and traffic table data, binding entity class .ftl file, generates The data layer identification code of get, set method;
Mapped file module, according to data layer identification code and traffic table, with reference to .hbm.xml template files, generates ORM mappings File;
Name module, it is according to the class in the code specification of configuration, literary with reference to the name attributes and .ftl in hbm.xml files Suffix name in part, generates class name, after the method in the method name prefix in configuration code specification and .ftl files Sew, generation method title;
Data control layer configuration module, according to the method name prefix in configuration code specification and data base's foot of configuration This, the data control layer logic needed for generating.
Preferably, the code generation module includes:
Generation module, according to the path that the object code of page configuration or default path is preserved, object code output is arrived In the path specified or engineering, generation includes the object code of tri- levels of MVC;
Copy module, the code copies for generating are debugged in actual motion environment, customization industry is done in output directory The exploitation of business logical gate.
Preferably, the code generation module includes:
Generation module, according to the path that the object code of page configuration or default path is preserved, object code output is arrived In the path specified or engineering, generation includes the object code of tri- levels of MVC;
Deployment module, the code of output are deployed under engineering catalogue, are processed by foreground service logic.
Preferably, the code planning module includes:
Data Layer planning module, according to project basic building, layout data layer architecture;
Data control layer planning module, according to project basic building, layout data control layer architecture;
Business Logic planning module, according to project basic building, plans service logic layer architecture.
Technical solution of the present invention passes through step:According to project basic building, prefix code planning is generated;Insert with reference to Jetty Part and .ftl files, configure code planning and the code building template of each level;By code building template set used in MVC tri- Layer architecture, generates object code.The present invention realizes the generation of code based on Jetty plug-in units and freemarker frameworks, can spirit The code model generated by configuration links living, also improves the quality of code while improve the efficiency of code building, Code automatic build and Jetty are increased income together with plug-in unit binding, ease for use and expansion is improved.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Structure according to these accompanying drawings obtains other accompanying drawings.
Fig. 1 is the flow chart of one embodiment of code generating method of the present invention;
Fig. 2 is the flow chart of step S20 in Fig. 1;
Fig. 3 is the flow chart of step S30 in Fig. 1;
Fig. 4 is the flow chart of mono- embodiment of step S30 in Fig. 1;
Fig. 5 is the flow chart of another embodiment of step S10 in Fig. 1;
Fig. 6 is the functional block diagram of one embodiment of code generator of the present invention;
Fig. 7 is the functional block diagram of configuration module in Fig. 6;
Fig. 8 is code generation module in Fig. 6 with the functional block diagram of embodiment;
Fig. 9 is the functional block diagram of another embodiment of code generation module in Fig. 6;
Figure 10 is the functional block diagram of planning module in Fig. 6.
Drawing reference numeral explanation:
Label Title Label Title
10 Planning module 22 Data Layer configuration module
20 Configuration module 23 Mapped file module
30 Code generation module 24 Name module
11 Data Layer planning module 25 Data control layer configuration module
12 Data control layer planning module 31 Generation module
13 Business Logic planning module 32 Copy module
21 Modular converter 33 Deployment module
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment a part of embodiment only of the invention, rather than the embodiment of whole.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present invention In the relative position relation under a certain particular pose (as shown in drawings) between each part, motion conditions etc. are explained, if should When particular pose changes, then directionality indicates also correspondingly to change therewith.
In addition, the description for being related to " first ", " second " etc. in the present invention is only used for describing purpose, and it is not intended that referring to Show or imply its relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", " Two " at least one this feature can be expressed or be implicitly included to feature.In addition, the technical scheme between each embodiment can To be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when the combination of technical scheme occurs It is conflicting or will be understood that the combination of this technical scheme is not present when cannot realize, also not in the protection model of application claims Within enclosing.
The present invention proposes a kind of code generating method.
With reference to Fig. 1, the code generating method includes step:
S10:According to project basic building, prefix code planning is generated;
S20:With reference to Jetty plug-in units and .ftl files, code planning and the code building template of each level are configured;
S30:By code building template set used in MVC three-tier architectures, object code is generated.
It should be noted that the full names of MVC are Model View Controller, be model (model), view (view), The abbreviation of controller (controller), a kind of software design model are detached with a kind of service logic, data, interface display Method organizes code, and service logic is gathered an inside components, is improving and personalized customization interface and user mutual Simultaneously, it is not necessary to write again service logic.MVC is grown up for mapping traditional input, processing and output by unique Function is in the structure of the graphic user interface of a logic.
Further, Jetty is a servlet container increased income, and it is the web container based on Java, such as JSP and Servlet provides running environment.Jetty is write using Java language, and its API is issued in the form of one group of JAR bag.Open Jetty container instances can be melted into an object by the personnel of sending out, and can provide net for the Java applications of some independent operatings rapidly Network and web connections.Jetty has advantages below:
Ease for use, ease for use are the basic principles of Jetty designs, Jetty are configured by XML or API;It is silent Recognize configuration and can meet most demand;Jetty is embedded in the middle of application program and only needs to considerably less code;
Extensibility, in the application program of Web 2.0 for having used Ajax, when each connection needs to keep longer Between, the increase that the consumption of such thread and internal memory can be drastically.This allows for us and worries that whole program can be because single component It is absorbed in bottleneck and affects the performance of whole program.But there is Jetty, even if in the case where there is a large amount of service requests, system Performance can also be maintained at an acceptable state.Substantial amounts of user's request is processed using Continuation mechanism with And the connection that the time is long.Jetty devises very good interface, therefore certain realization in Jetty cannot meet use When needing of family, some realizations that user can be easily to Jetty are modified so that it is special that Jetty is applied to The demand of application program.
Easy embeddability, Jetty design at the beginning of as an outstanding component designing, this also implies that Jetty very easily can be embedded in the middle of application program without program in order that being made an amendment with Jetty.From certain journey On degree, you can also be interpreted as an Embedded Web server Jetty.Jetty can be made as embedded server With the speed of service of Jetty is very fast, and is lightweight, can control its fortune in Java from test case OK.Such that it is able to make automatic test eliminate the reliance on external environment condition, automatic test is smoothly realized.
Further, FreeMarker is a template engine, i.e., a kind of based on template and data to be changed, and is used for Generate the general utility tool of output text (html web page, Email, configuration file, source code etc.).It is a java class storehouse, It is component that a programmer can be embedded in their institute's developments.
In the embodiment of the present invention, according to project basic building, generate S10 the step of prefix code is planned and include specification calmly The preposition planning of justice, storage path, method name, class name etc..
Step S20 is specifically, call code with reference to Jetty encapsulation code model device combinations by obtaining configuration information design Model file * .ftl, generate configuration information model, then generate specific code to specified circuit by the conversion of Java model generators Footpath.
Technical solution of the present invention passes through step:According to project basic building, prefix code planning is generated;Insert with reference to Jetty Part and .ftl files, configure code planning and the code building template of each level;By code building template set used in MVC tri- Layer architecture, generates object code.The present invention realizes the generation of code based on Jetty plug-in units and freemarker frameworks, can spirit The code model generated by configuration links living, also improves the quality of code while improve the efficiency of code building, Code automatic build and Jetty are increased income together with plug-in unit binding, ease for use and expansion is improved.
With reference to Fig. 2, specifically, with reference to Jetty plug-in units and .ftl files, code planning and the code building of each level are configured The step of template, S20 included:
S21:Allocation list is designed or .hbm.xml files, and Jetty plug-in units call .ftl files, are converted into Java code Model;
S22:According to type conversion configurations and traffic table data, binding entity class .ftl file, get, set method is generated Data layer identification code;
S23:According to data layer identification code and traffic table, with reference to .hbm.xml template files, ORM mapped files are generated;
S24:According to the class in the code specification of configuration, with reference in the name attributes and .ftl files in hbm.xml files Suffix name, generate class name, it is according to the method suffix in the method name prefix in configuration code specification and .ftl files, raw Into method name;
S25:According to the method name prefix in configuration code specification and the database script of configuration, described data are generated Key-course logic.
With reference to Fig. 3, specifically, by code building template set used in MVC three-tier architectures, the step of generate object code S30 includes:
S31:According to the path that the object code of page configuration or default path is preserved, object code is exported to specifying In path or engineering, generation includes the object code of tri- levels of MVC;
S32:The code copies generated in output directory are debugged in actual motion environment, custom service logic is done Partial exploitation.
With reference to Fig. 4, specifically, by code building template set used in MVC three-tier architectures, the step of generate object code S30 includes:
S31:According to the path that the object code of page configuration or default path is preserved, object code is exported to specifying In path or engineering, generation includes the object code of tri- levels of MVC;
S33:The code of output is deployed under engineering catalogue, is processed by foreground service logic.
It should be noted that do custom service by the code copies generated in output directory in actual motion environment patrolling The exploitation of part is collected, or the code of output is deployed under engineering catalogue and is processed by foreground service logic, can strengthen the visual of the page Change, i.e. the programming idea with " What You See Is What You Get " can see the synchronization control of result, code and result as principle, at any time.
With reference to Fig. 5, specifically, according to project basic building, generating S10 the step of prefix code is planned includes:
S11:Data Layer is planned, according to project basic building, layout data layer architecture;
S12:Data control layer is planned, according to project basic building, layout data control layer architecture;
S13:Business Logic is planned, according to project basic building, plans service logic layer architecture.
It should be noted that the present invention can only generate among data Layer, data control layer or Business Logic Level code, it is adaptable to only change the situation of a hierarchical data so that the process of code building is more flexibly controllable.
The present invention in the process of the code building of data Layer is:
Data Layer is configured, and according to the corresponding relation that traffic table is configured with design business model, it is right to generate through Model Matching The entity class code information answered.
Entity class model is generated:Concrete model is converted to into code, the generation of specific code is realized.
Entity class shows editor:For showing the exhibition information after code building, while can correct in ungratified part Hold.
ORM mapped files are generated:By entity class configuration information, entity class mapped file template is chosen, generated and entity The corresponding ORM mapped files of class file.
The present invention generates the process of Data Control layer identification code:
Data control layer is configured:By the entity class and configuration information of selection, with reference to code planning information, entered model With the corresponding data control layer category code information of generation.
Data Control layer model is generated:With reference to configuration information and Data Control layer model, the real tool for thinking that user needs of conversion Volume data controls layer identification code.
Data control layer model display editor:For showing the exhibition information after code building, while can correct being unsatisfactory for Partial content.
The present invention generates the process of service logic layer identification code:
Business Logic configuration module:By the entity class and configuration information of selection, with reference to code planning information, entered mould Type matching generates corresponding Business Logic code information.
Service logic layer model is generated:With reference to configuration information and service logic layer model, the real industry for thinking that user needs of conversion Business logic layer method foundation code.
Business Logic model display editor:For showing the exhibition information after code building, while can correct being unsatisfactory for Partial content.
With reference to Fig. 6, the present invention also proposes a kind of code generator, including:
Planning module 10, according to project basic building, generates prefix code planning;
Configuration module 20, with reference to Jetty plug-in units and .ftl files, configures code planning and the code building mould of each level Plate;
Code generation module 30, by code building template set used in MVC three-tier architectures, generates object code.
With reference to Fig. 7, specifically, the configuration module 20 includes:
Modular converter 21, allocation list design or .hbm.xml files, Jetty plug-in units call .ftl files, are converted into Java code model;
Data Layer configuration module 22, according to type conversion configurations and traffic table data, binding entity class .ftl file, generates The data layer identification code of get, set method;
Mapped file module 23, according to data layer identification code and traffic table, with reference to .hbm.xml template files, generates ORM and reflects Penetrate file;
Name module 24, according to the class in the code specification of configuration, with reference to name attributes and .ftl in hbm.xml files Suffix name in file, generates class name, according to the method in the method name prefix in configuration code specification and .ftl files Suffix, generation method title;
Data control layer configuration module 25, according to the method name prefix in configuration code specification and data base's foot of configuration This, the data control layer logic needed for generating.
With reference to Fig. 8, specifically, the code generation module 30 includes:
Generation module 31, according to the path that the object code of page configuration or default path is preserved, object code is exported To in specified path or engineering, generation includes the object code of tri- levels of MVC;
Copy module 32, the code copies for generating is debugged in actual motion environment, customized in output directory The exploitation of service logic part.
With reference to Fig. 9, specifically, the code generation module 30 includes:
Generation module 31, according to the path that the object code of page configuration or default path is preserved, object code is exported To in specified path or engineering, generation includes the object code of tri- levels of MVC;
Deployment module 33, the code of output are deployed under engineering catalogue, are processed by foreground service logic.
With reference to Figure 10, specifically, the code planning module 10 includes:
Data Layer planning module 11, according to project basic building, layout data layer architecture;
Data control layer planning module 12, according to project basic building, layout data control layer architecture;
Business Logic planning module 13, according to project basic building, plans service logic layer architecture.
Technical solution of the present invention is by according to project basic building, generating prefix code planning;With reference to Jetty plug-in units and .ftl file, configures code planning and the code building template of each level;By code building template set used in tri- layer frames of MVC Structure, generates object code, and three steps realize a kind of code generating method.By the method flexibly configurable links institute The code model of generation, generates the standardization code of its corresponding model according to different code models, is the secondary of commercialization Exploitation provides facility;Its motility and systematized processing mode, also take into account various while system development efficiency is improve The code specification of version, lifts code quality;Code automatic build and Jetty are increased income together with plug-in unit binding, device is improved Ease for use and expansion.
The preferred embodiments of the present invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, it is every at this Under the inventive concept of invention, the equivalent structure transformation made using description of the invention and accompanying drawing content, or directly/use indirectly It is included in the scope of patent protection of the present invention in other related technical fields.

Claims (10)

1. a kind of code generating method, it is characterised in that including step:
According to project basic building, prefix code planning is generated;
With reference to Jetty plug-in units and .ftl files, code planning and the code building template of each level are configured;
By code building template set used in MVC three-tier architectures, object code is generated.
2. code generating method as claimed in claim 1, it is characterised in that with reference to Jetty plug-in units and .ftl files, configuration is each The step of code planning of level and code building template, includes:
Allocation list is designed or .hbm.xml files, and Jetty plug-in units call .ftl files, are converted into Java code model;
According to type conversion configurations and traffic table data, binding entity class .ftl file, the data Layer generation of get, set method is generated Code;
According to data layer identification code and traffic table, with reference to .hbm.xml template files, ORM mapped files are generated;
According to the class in the code specification of configuration, order with reference to the suffix in the name attributes and .ftl files in hbm.xml files Name, generates class name, according to the method suffix in the method name prefix in configuration code specification and .ftl files, generation method name Claim;
According to the method name prefix in configuration code specification and the database script of configuration, the data control layer needed for generating is patrolled Volume.
3. code generating method as claimed in claim 2, it is characterised in that by code building template set used in MVC tri- The step of layer architecture, generation object code, includes:
According to the path that the object code of page configuration or default path is preserved, object code is exported to the path or work specified Cheng Zhong, generation include the object code of tri- levels of MVC;
The code copies generated in output directory are debugged in actual motion environment, opening for custom service logical gate is done Send out.
4. code generating method as claimed in claim 2, it is characterised in that by code building template set used in MVC tri- The step of layer architecture, generation object code, includes:
According to the path that the object code of page configuration or default path is preserved, object code is exported to the path or work specified Cheng Zhong, generation include the object code of tri- levels of MVC;
The code of output is deployed under engineering catalogue, is processed by foreground service logic.
5. the code generating method as described in Claims 1-4 any one, it is characterised in that according to project basic building, it is raw The step of planning into prefix code includes:
Data Layer is planned, according to project basic building, layout data layer architecture;
Data control layer is planned, according to project basic building, layout data control layer architecture;
Business Logic is planned, according to project basic building, plans service logic layer architecture.
6. a kind of code generator, it is characterised in that include:
Planning module, according to project basic building, generates prefix code planning;
Configuration module, with reference to Jetty plug-in units and .ftl files, configures code planning and the code building template of each level;
Code generation module, by code building template set used in MVC three-tier architectures, generates object code.
7. code generator as claimed in claim 6, it is characterised in that the configuration module includes:
Modular converter, allocation list design or .hbm.xml files, Jetty plug-in units call .ftl files, are converted into Java generations Code model;
Data Layer configuration module, according to type conversion configurations and traffic table data, binding entity class .ftl file, generate get, The data layer identification code of set methods;
Mapped file module, according to data layer identification code and traffic table, with reference to .hbm.xml template files, generates ORM mapped files;
Name module, according to the class in the code specification of configuration, with reference in the name attributes and .ftl files in hbm.xml files Suffix name, generate class name, it is according to the method suffix in the method name prefix in configuration code specification and .ftl files, raw Into method name;
Data control layer configuration module, it is according to the method name prefix in configuration code specification and the database script of configuration, raw Into required data control layer logic.
8. code generator as claimed in claim 7, it is characterised in that the code generation module includes:
Generation module, according to the path that the object code of page configuration or default path is preserved, object code output is arrived and is specified Path or engineering in, generation includes the object code of tri- levels of MVC;
Copy module, the code copies for generating is debugged in actual motion environment, custom service is done and patrol in output directory Collect the exploitation of part.
9. code generator as claimed in claim 7, it is characterised in that the code generation module includes:
Generation module, according to the path that the object code of page configuration or default path is preserved, object code output is arrived and is specified Path or engineering in, generation includes the object code of tri- levels of MVC;
Deployment module, the code of output are deployed under engineering catalogue, are processed by foreground service logic.
10. the code generator as described in claim 6 to 9 any one, it is characterised in that the code planning module bag Include:
Data Layer planning module, according to project basic building, layout data layer architecture;
Data control layer planning module, according to project basic building, layout data control layer architecture;
Business Logic planning module, according to project basic building, plans service logic layer architecture.
CN201611195426.2A 2016-12-21 2016-12-21 Code generation method and code generator Pending CN106598620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611195426.2A CN106598620A (en) 2016-12-21 2016-12-21 Code generation method and code generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611195426.2A CN106598620A (en) 2016-12-21 2016-12-21 Code generation method and code generator

Publications (1)

Publication Number Publication Date
CN106598620A true CN106598620A (en) 2017-04-26

Family

ID=58602305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611195426.2A Pending CN106598620A (en) 2016-12-21 2016-12-21 Code generation method and code generator

Country Status (1)

Country Link
CN (1) CN106598620A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273116A (en) * 2017-05-22 2017-10-20 互联天下科技发展(深圳)有限公司 The method that code is produced using the Code Generator based on framework
CN108491218A (en) * 2018-03-12 2018-09-04 浙江中控技术股份有限公司 A kind of method and apparatus of databases comparison file generated
CN109062568A (en) * 2018-06-19 2018-12-21 链家网(北京)科技有限公司 A kind of project generation method and tool
CN109117132A (en) * 2017-06-22 2019-01-01 通用汽车环球科技运作有限责任公司 The system and method for electrical architecture for Automobile Design option reconfigured
CN109240670A (en) * 2018-11-21 2019-01-18 北京锐安科技有限公司 Modular software development methodology, system, equipment and medium
CN109787768A (en) * 2018-12-12 2019-05-21 平安科技(深圳)有限公司 A kind of authentication configuration method, device and computer readable storage medium
CN110674625A (en) * 2019-08-29 2020-01-10 浙江数链科技有限公司 Code generation method and device, computer equipment and storage medium
CN111273902A (en) * 2018-12-05 2020-06-12 深圳市茁壮网络股份有限公司 Project and directory architecture generation method and device
CN113342399A (en) * 2021-06-29 2021-09-03 中国农业银行股份有限公司 Application structure configuration method and device and readable storage medium
CN113805875A (en) * 2021-09-18 2021-12-17 大连华信计算机技术股份有限公司 Cross-language code automatic generation platform
CN113342399B (en) * 2021-06-29 2024-07-02 中国农业银行股份有限公司 Method and device for configuring structure of application program and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697120A (en) * 2009-11-05 2010-04-21 河南辉煌科技股份有限公司 Relational database based generation method of J2EE code
CN103500087A (en) * 2013-09-17 2014-01-08 福建亿榕信息技术有限公司 Code generation method and device based on maven plug-in and freemarker template
CN104331285A (en) * 2014-10-30 2015-02-04 北京思特奇信息技术股份有限公司 Automatic code generation method and system
CN104598233A (en) * 2015-01-12 2015-05-06 北京中交兴路车联网科技有限公司 Code generation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697120A (en) * 2009-11-05 2010-04-21 河南辉煌科技股份有限公司 Relational database based generation method of J2EE code
CN103500087A (en) * 2013-09-17 2014-01-08 福建亿榕信息技术有限公司 Code generation method and device based on maven plug-in and freemarker template
CN104331285A (en) * 2014-10-30 2015-02-04 北京思特奇信息技术股份有限公司 Automatic code generation method and system
CN104598233A (en) * 2015-01-12 2015-05-06 北京中交兴路车联网科技有限公司 Code generation method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273116A (en) * 2017-05-22 2017-10-20 互联天下科技发展(深圳)有限公司 The method that code is produced using the Code Generator based on framework
CN107273116B (en) * 2017-05-22 2020-09-25 互联天下科技发展(深圳)有限公司 Method for producing code using framework-based code generation tool
CN109117132A (en) * 2017-06-22 2019-01-01 通用汽车环球科技运作有限责任公司 The system and method for electrical architecture for Automobile Design option reconfigured
CN108491218A (en) * 2018-03-12 2018-09-04 浙江中控技术股份有限公司 A kind of method and apparatus of databases comparison file generated
CN108491218B (en) * 2018-03-12 2021-09-14 浙江中控技术股份有限公司 Method and device for generating database change file
CN109062568A (en) * 2018-06-19 2018-12-21 链家网(北京)科技有限公司 A kind of project generation method and tool
CN109240670A (en) * 2018-11-21 2019-01-18 北京锐安科技有限公司 Modular software development methodology, system, equipment and medium
CN111273902B (en) * 2018-12-05 2024-04-26 深圳市茁壮网络股份有限公司 Project and directory architecture generation method and device
CN111273902A (en) * 2018-12-05 2020-06-12 深圳市茁壮网络股份有限公司 Project and directory architecture generation method and device
CN109787768B (en) * 2018-12-12 2021-08-03 平安科技(深圳)有限公司 Identity authentication configuration method and device and computer readable storage medium
CN109787768A (en) * 2018-12-12 2019-05-21 平安科技(深圳)有限公司 A kind of authentication configuration method, device and computer readable storage medium
CN110674625A (en) * 2019-08-29 2020-01-10 浙江数链科技有限公司 Code generation method and device, computer equipment and storage medium
CN113342399A (en) * 2021-06-29 2021-09-03 中国农业银行股份有限公司 Application structure configuration method and device and readable storage medium
CN113342399B (en) * 2021-06-29 2024-07-02 中国农业银行股份有限公司 Method and device for configuring structure of application program and readable storage medium
CN113805875A (en) * 2021-09-18 2021-12-17 大连华信计算机技术股份有限公司 Cross-language code automatic generation platform

Similar Documents

Publication Publication Date Title
CN106598620A (en) Code generation method and code generator
CN101840334B (en) Software component service packaging method
CN106371825A (en) Dynamic form generation method and apparatus for mobile end application interface
CN103761082A (en) Componential research and development mode and domain driving model combined application development system and platform
CN105224511A (en) A kind of method of calibration of intelligent substation SCD file
CN104020994B (en) Stream process definition device and stream process based on streaming system define method
CN109240688A (en) Interface development method, electronic device and readable storage medium storing program for executing
CN105512304A (en) Method for generating internet applications on line, system integration method and supporting platform
CN104144215A (en) Method for building Internet-of-Things ubiquitous device resource model
CN101673358A (en) Method and device for managing authority in workflow component based on authority component
CN104391701A (en) Method for developing energy efficiency assessment software
CN103268230A (en) Method used for constructing cloud computing information management platform capable of expanding service
CN104063209A (en) Regional-medical-oriented heterogeneous information integration method and device
CN108108460A (en) A kind of standardized work flows intelligent management system framework and system
CN105824944A (en) XML (X Extensible Markup Language) configuration data maintenance method and system based on scripting language
CN106484452A (en) A kind of unified configuring management method of software platform and device
CN103971225A (en) Workflow dynamic expanding method and system
CN111399829B (en) Waveform modeling method and terminal based on model driving
CN103793227B (en) A kind of method for realizing WCF services
CN107741845A (en) A kind of generation method and device of self defined class example
CN109766090B (en) Integrated configuration method for program logic and secondary circuit
CN109753281A (en) A kind of microgrid energy management strategy visualization toolkit based on graphic programming
Apostolov UML and XML use in IEC 61850
CN102087595A (en) Method and system for developing patent agency collaborative management system based on SOA (service oriented architecture)
CN101751258A (en) Intelligent card and developing method, system and deployment method for intelligent card application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426