Code Monkey home page Code Monkey logo

activequant-mcp's Introduction

Model to Code Platform

This package is an easy to use code generator. It fits my personal use and might not fit yours. It's very lightweight (much more lightweight than AndroMDA or Sculptor) and easy to extend.

It takes a project definition file, see sample.model, and generates hibernate Entities, DAO interface, DAO implementation, Service interface, Service implementation in a Spring autowired way.

It uses velocity macro templates for those implementations, you can modify these templates or create new templates.

Installation

Download the distribution tar.gz and unzip it to a folder of your choice. Create an environment variable MCP_HOME that points to your mcp root directory (the one with the mcp command in it).

Then add MCP_HOME folder to your $PATH variable, so that you can invoke 'mcp'.

mcp will look for templates in MCP_HOME/templates.

Usage

Assuming you have a model file, you invoke the mcp command: Run 'mcp model_file' to run the code generator on it.

Model definitions

An example of a model file can be found in src/test/com/stormdealers/mcp/tests/sample.model

Templates

All current templates are located in src/main/resources/templates - I imagine this to expand over the course of the next year or so.

License

This software is provided as is, with no guarantee of fitness for any purpose. It is distributed under the terms of the Apache Software License 2.0.

Contributions

Contributions are welcome! I could imagine, we could end up with a template library that we can specify to use.

activequant-mcp's People

Contributors

activequant avatar

Watchers

 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.