Git Product home page Git Product logo

codegen's Introduction

   codeGen(Code Generate)是一款基于velocity模版引擎的代码生成工具。通过读取pdm文件(PowerDesigner的physical data model) 中数据库表结构,根据代码结构配置好模版,就能根据模版生成代码。本工具可以生成增,删,改,查从前端到后端所有文件,不用编写一行 代码(只要你的模版写的够好),至少能给您的项目节省30%到40%的开发时间。大家要知道如果一个表结构有30个以上的字段,前端页面至 少有30个以上的控件代码要写,开发人员可能要花费大量的时间编写和调试这些控件。这样的重复劳动会给开发人员产生厌恶感和疲劳感,长 时间的重复劳动会使开发人员工作效率下降。开发人员应该把时间花在更有创造性,更有价值代码上。所以本工具的宗旨是:"能用机器完成 的代码,就应该由机器来完成"。

  现在很多公司都有自己的代码生成工具,但不灵活,如果代码结构发生变动则需要改动生成代码工具的代码来满足需求。本工具做到可以 根据模版灵活配置,很大程度上满足变动需求。如果您的项目正在使用PowerDesigner来设计数据库表结构模型,那这款工具再适合你不过了。

    本工具简单易用,提供代码预览,代码生动等功能,使用操作如下: 1.导入pdm文件,左侧面板会以树形结构展示出pdm文件中设计好的表结构; 2.选择要生成代码的数据库表; 3.编写自定义代码模版(velocity 模版,需要根据自己的代码结构来编写); 4.选择自定义模版预览或生成代码。

源代码地址:https://github.com/elfkingw/codeGen

交流  QQ:272942514   邮件:[email protected]

注意:本工具支持PowerDesigner15以上

下载地址:http://elfkingw.iteye.com/blog/1923098

codegen's People

Contributors

elfkingw avatar

Watchers

julian avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.