/CodeGen

IntelliJ IDEA Plugin - Code Generator Tool

Primary LanguageJavaMIT LicenseMIT

CodeGen

This plugin helps you to generate specific template code by create table statement or database .

release license

CodeGen

Installation

  • Using IDE built-in plugin system on Windows:
    • File > Settings > Plugins > Browse repositories... > Search for "CodeGen" > Install Plugin
  • Using IDE built-in plugin system on MacOs:
    • Preferences > Settings > Plugins > Browse repositories... > Search for "CodeGen" > Install Plugin
  • Manually:
    • Download the latest release and install it manually using Preferences > Plugins > Install plugin from disk...

Restart IDE.

Usage

  • Connecting to Your Database:
    • View > Tool Windows > Database
  • CodeGen
    • Tools > CodeGen-SQL or shift + command + g
    • Select Table > Right click popup menu > CodeGen-DB

Powered by

  • Velocity
  • IDEA database

Idea sdk docs

http://www.jetbrains.org/intellij/sdk/docs/welcome.html https://www.jetbrains.com/help/idea/meet-intellij-idea.html

How to setup

  • Clone the project, and open with IDEA (Community).
  • Modify module type in .idea/CodeGen.iml from JAVA_MODULE to PLUGIN_MODULE.
  • Change the project's module compile output path to /XXX/XXX/CodeGen/out in Project Structure -> Modules -> CodeGen -> paths. You can also modify the Plugin Deployment plugin.xml path.
  • Add dependencies to project, set the scope to provided
    Idea.App/Contents/plugins/DatabaseTools/lib/database-impl.jar
    Idea.App/Contents/plugins/DatabaseTools/lib/database-openapi.jar
    
  • Run CodeGen and enjoy it.

Welcome to contribute

Guide

Contributions

License

Copyright © 2017 MIT License