Db2j idea plugin
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
Update log
Using screenshots:
1、Add Database
2、Config db
3、Select the tables and right-click the display menu
4、Ok
- Repository Interface: default Domain Path
- Controller:
- {Controller Path} Controller、
DataMapper(updater)
、Updater(updater)
- {Controller Path}/data
Ref、Form、Dto、Criteria
- {Controller Path} Controller、
- Overwrite Files: default false
- Template:
Jpa、Dto、Common
- Jpa
javax.persistence
- Dto
public
- Common
private
- Jpa
- Domain Path:
- Single Module:
src/main/java/cc/ssnoodles/demo/domain
- Multiple Modules:
base/src/main/java/cc/ssnoodles/demo/base/domain
- Single Module:
- Controller Path:
- Single Module:
src/main/java/cc/ssnoodles/demo/api
- Multiple Modules:
base/src/main/java/cc/ssnoodles/demo/base/api
- Single Module:
- Single rename: Single table support rename class and interface, default table hump name.
Introduced projects
Reference projects
Development
gradle.properties
ideaSDKlocalPath=