Generate a mapping class file for a single table.
-
Using IDE built-in plugin system:
Preferences > Plugins > Marketplace > Search for "kotlin-mybatis-entity-generator" > Install Plugin
-
Manually:
Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...
| Kotlin | MySQL |
|---|---|
| Int | TINYINT,SMALLINT,MEDIUMINT,INT,BIGINT |
| LocalDatetime | DATE,TIME,DATETIME,TIMESTAMP,YEAR |
| String | CHAR,VARCHAR,BINARY,VARBINARY |
| TINYBLOB,BLOB,MEDIUMBLOB,LONGBLOB | |
| TINYTEXT,TEXT,MEDIUMTEXT,LONGTEXT | |
| JSON,ENUM |
PostgreSQL(coming soon) ...
Plugin based on the IntelliJ Platform Plugin Template.
