MyBatis Generator (MBG)
April 7, 2026 ยท View on GitHub

This is a code generator for MyBatis.
This library will generate code for use with MyBatis. It will introspect a database table (or many tables) and will generate artifacts that can be used to access the table(s). This lessens the initial nuisance of setting up objects and configuration files to interact with database tables. MBG seeks to make a major impact on the large percentage of database operations that are simple CRUD (Create, Retrieve, Update, Delete).
MBG can generate code in multiple styles (or "runtimes"). MBG can generate code for Java based projects, or for Kotlin based projects.
MBG can be run in multiple ways - from the command line, with an Ant task, as a Maven plugin, etc. See this page for details: Running MBG
Eclipse
There is an Eclipse feature for MBG as well. Here's how to install it:
Eclipse Update Site (Marketplace)
The easiest way to install the Eclipse feature is from the Eclipse Marketplace at this address: https://marketplace.eclipse.org/content/mybatis-generator
Eclipse Update Site (Direct)
You can also manually configure an Eclipse update site for the generator. The update site is here: https://jeffgbutler.github.io/mybatis-generator-update-site/
From the Release Bundle
You can manually install the plugin by downloading a zip file containing the update site from the GitHub release page here: https://github.com/mybatis/generator/releases