MyBatis-Generator-Support
Useful extensions for MyBatis-Generator(MGB) to make your life easier.
Useful extensions for MyBatis-Generator(MGB) to make your life easier.
<plugin type="io.github.medusar.mybatis.generator.plugin.MapperBatchInsertPlugin"/>
<plugin type="io.github.medusar.mybatis.generator.plugin.ExampleRenamePlugin"/>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.25</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.5</version>
</dependency>
<dependency>
<groupId>io.github.medusar</groupId>
<artifactId>mybatis-generator-support</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<configuration>
<configurationFile>src/main/resources/mybatis-generator-config.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
</plugin>
<commentGenerator type="io.github.medusar.mybatis.generator.support.SimpleCommentGenerator"/>
FYI: if you want your table comments to be added to the entity class, you will need to add useInformationSchema=true
in your connection url.
Because mybatis-generator-support
depends on mybatis-generator-core
,
so you should make sure the versions match.
mybatis-generator-core | mybatis-generator-support |
---|---|
<= 1.3.5 | 0.0.1 |