codeGen code generation tool version 0.2.0

       codeGen (Code Generate) is an open source tool for code generation based on velocity template engine developed by me. By reading the database table structure in the pdm file (physical data model of PowerDesigner), and configuring the template according to the code structure, the code can be generated according to the template. This tool can generate additions, deletions, changes, and check all files from the front end to the back end without writing a single line of code (as long as your template is well written), which can save at least 30% to 40% of the development time of your project. You should know that if a table structure has more than 30 fields, and the front-end page has at least 30 control codes to be written, developers may spend a lot of time writing and debugging these controls. Such repetitive work will give developers a sense of disgust and fatigue, and long-term repetitive work will reduce the developer's work efficiency. Developers should spend their time on more creative, more valuable code. So the purpose of this tool is: "The code that can be done by machine should be done by machine".

         Many companies now have their own code generation tools, but they are not flexible. If the code structure changes, the code of the code generation tool needs to be changed to meet the needs. This tool can be flexibly configured according to the template to meet the changing needs to a large extent. If your project is using PowerDesigner to design database table structure model, then this tool is perfect for you.

         This tool is simple and easy to use, and provides functions such as code preview and vivid code. The operations are as follows:

1. Import the pdm file, the left panel will display the table structure designed in the pdm file in a tree structure;



 

2. Select the database table to generate the code;



 

3. Write a custom code template (velocity template utf-8 format, you need to write according to your own code structure);



 

 

 

4. Select custom template to preview or generate code.



 

Source code address: https://github.com/elfkingw/codeGen 

If you are interested, you can fork my project and contribute code or documentation

Communication QQ: 272942514 Email: [email protected]

注意:本工具目前只在PowerDesigner15上测试,如果有问题可以及时和我联系

 

欢迎下载使用 

下载地址:

版本0.1.0 :http://pan.baidu.com/share/link?shareid=3263984732&uk=741496600&third=15

版本0.2.0:  http://pan.baidu.com/s/1mgkGMlq

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326909128&siteId=291194637