SShnoodles / db2j-idea-plugin

Generate java Entity from database tables(从数据库表生成Java实体)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Db2j idea plugin

中文

Community(社区版)

Features:use in database tool, select database tables to generate java files. includes: domain、repository、controller. Idea Version:Ultimate 2018.1+ Plugin url

Plugin Installation:

  • Marketplace:
    • Preferences > Plugins > Marketplace > Search for "db2j" > Install Plugin
  • Manual:
    • Download the zip and install it manually using Preferences > Plugins > Install plugin from disk...

Quick Start

image

Update log

UPDATE_LOG 更新日志

Using screenshots:

1、Add Database

image

2、Config db

image

image

3、Select the tables and right-click the display menu

image

4、Ok

image

  • Repository Interface: default Domain Path
  • Controller:
    • {Controller Path} Controller、DataMapper(updater)Updater(updater)
    • {Controller Path}/data Ref、Form、Dto、Criteria
  • Overwrite Files: default false
  • Template: Jpa、Dto、Common
    • Jpa javax.persistence
    • Dto public
    • Common private
  • Domain Path:
    • Single Module:src/main/java/cc/ssnoodles/demo/domain
    • Multiple Modules:base/src/main/java/cc/ssnoodles/demo/base/domain
  • Controller Path:
    • Single Module:src/main/java/cc/ssnoodles/demo/api
    • Multiple Modules:base/src/main/java/cc/ssnoodles/demo/base/api
  • Single rename: Single table support rename class and interface, default table hump name.

Introduced projects

Reference projects

Development

gradle.properties

ideaSDKlocalPath=

other

PredicateUtils

About

Generate java Entity from database tables(从数据库表生成Java实体)

License:MIT License


Languages

Language:Java 100.0%