GitPedia
mybatis

mybatis/generator

A code generator for MyBatis.

12 Releases
Latest: 2mo ago
MyBatis Generator 2.0.0mybatis-generator-2.0.0Latest
jeffgbutlerjeffgbutler·2mo ago·April 8, 2026
GitHub

📋 Changes

  • Java 17 or greater is now required
  • The generator now supports Java merging in the base product. Eclipse is no longer a required execution environment for this feature
  • The generator can build Java records for database models in all runtimes except Kotlin
  • We've included two new plugins specifically for records - one that adds a fluent builder, and another that adds "with" methods. These plugins can make records easier to work with if your table has a large number of fields
  • The Kotlin runtime now builds more idiomatic immutable data classes for database models
  • The generator has been updated to use [JSpecify](https://jspecify.dev/) to fully document the null capabilities of the library. In addition, we've included a new plugin to generate appropriate JSpecify annotations in the generated code if you wish to adopt JSpecify in your own usage
MyBatis Generator Release 1.4.2mybatis-generator-1.4.2
jeffgbutlerjeffgbutler·3y ago·February 20, 2023
GitHub

This is a small maintenance release. The most visible change is a switch from the "javax" namespace to the "jakarta" namespace for the generated annotation. There are several other relatively minor changes. For all users, the changes are fully detailed in the documentation here: https://mybatis.org/generator/whatsNew.html and the GitHub milestone here: https://github.com/mybatis/generator/issues?q=milestone%3A1.4.2 The new artifacts are available in Maven central at ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.4.2</version> </dependency> ``` and ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.4.2</version> </dependency> ``` You can install the eclipse feature from the eclipse market place here: https://marketplace.eclipse.org/content/mybatis-generator

MyBatis Generator Release 1.4.1mybatis-generator-1.4.1
jeffgbutlerjeffgbutler·4y ago·March 8, 2022
GitHub

This release is primarily focused on improving the generated code targeting MyBatis Dynamic SQL. For Java users (```targetRuntime = "MyBatis3DynamicSQL"```) the changes are relatively minor and should be transparent to most users. For Kotlin users (```targetRuntime = "MyBatis3Kotlin"```) the changes are more impactful and are aligned with updates to the Kotlin DSL in newer versions of MyBatis Dynamic SQL. After upgrading, the generated code will be different than Kotlin code generated with earlier versions of MyBatis Generator. There is information about making changes to accommodate these changes here: https://mybatis.org/generator/whatsNew.html There are several other relatively minor changes. For all users, the changes are fully detailed in the documentation here: https://mybatis.org/generator/whatsNew.html and the GitHub milestone here: https://github.com/mybatis/generator/issues?q=milestone%3A1.4.1 The new artifacts are available in Maven central at ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.4.1</version> </dependency> ``` and ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.4.1</version> </dependency> ``` You can install the eclipse feature from the eclipse market place here: https://marketplace.eclipse.org/content/mybatis-generator

MyBatis Generator Release 1.4.0mybatis-generator-1.4.0
jeffgbutlerjeffgbutler·6y ago·November 24, 2019
GitHub

This is a major release of the generator. Important themes include: 1. Kotlin! New runtime for generating Kotlin code 1. Updated runtime for MyBatis Dynamic SQL 1. Removal of support for iBatis2 1. Update to Java 8 There are many other enhancements and fixes. Please read the release notes here for details: http://mybatis.org/generator/whatsNew.html You can also see a list of other bug fixes and enhancements here: https://github.com/mybatis/generator/issues?q=milestone%3A1.4.0 The new artifacts are available in Maven central at ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.4.0</version> </dependency> ``` and ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.4.0</version> </dependency> ``` You can install the eclipse feature from the eclipse market place here: https://marketplace.eclipse.org/content/mybatis-generator

MyBatis Generator Release 1.3.7mybatis-generator-1.3.7
jeffgbutlerjeffgbutler·7y ago·July 4, 2018
GitHub

This release contains a few minor bug fixes and enhancements. After this release, we will remove support for iBatis, and will require Java 8+ to run the generator. You can see a list of other bug fixes and enhancements here: https://github.com/mybatis/generator/issues?q=milestone%3A1.3.7+is%3Aclosed The new artifacts are available in Maven central at ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.3.7</version> </dependency> ``` and ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.7</version> </dependency> ``` You can install the eclipse feature from the eclipse market place here: https://marketplace.eclipse.org/content/mybatis-generator

MyBatis Generator Release 1.3.6mybatis-generator-1.3.6
jeffgbutlerjeffgbutler·8y ago·December 21, 2017
GitHub

This release contains a major enhancement where the generator will generate code for MyBatis Dynamic SQL See the "what's new" page for more details: http://www.mybatis.org/generator/whatsNew.html. You can see a list of other bug fixes and enhancements here: https://github.com/mybatis/generator/issues?q=milestone%3A1.3.6+is%3Aclosed The new artifacts are available in Maven central at ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.3.6</version> </dependency> ``` and ```xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.6</version> </dependency> ``` You can install the eclipse feature from the eclipse market place here: https://marketplace.eclipse.org/content/mybatis-generator

MyBatis Generator Release 1.3.5mybatis-generator-1.3.5
jeffgbutlerjeffgbutler·9y ago·September 7, 2016
GitHub

This release contains a two bug fixes and a small enhancement since the last release. Most significant is a fix for #136 which was causing problems for many users. You can see a list of bug fixes and enhancements here: https://github.com/mybatis/generator/issues?q=milestone%3A1.3.5+is%3Aclosed The new artifacts are available in Maven central at ``` xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.3.5</version> </dependency> ``` and ``` xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.5</version> </dependency> ``` You can install the eclipse feature from the eclipse market place here: https://marketplace.eclipse.org/content/mybatis-generator

MyBatis Generator Release 1.3.4mybatis-generator-1.3.4
jeffgbutlerjeffgbutler·9y ago·August 19, 2016
GitHub

This release contains a few bug fixes and small enhancements since the last release. There is also a new version of the Eclipse feature and a new Eclipse update site. The eclipse feature has significant enhancements including a new launcher for the generator. You can see a list of bug fixes and enhancements here: https://github.com/mybatis/generator/issues?q=milestone%3A1.3.4+is%3Aclosed The new artifacts are available in Maven central at ``` xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.3.4</version> </dependency> ``` and ``` xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.4</version> </dependency> ``` You can install the eclipse feature from the eclipse market place here: https://marketplace.eclipse.org/content/mybatis-generator

MyBatis Generator 1.3.3mybatis-generator-1.3.3
jeffgbutlerjeffgbutler·10y ago·June 24, 2016
GitHub

This release contains quite a few bug fixes and small enhancements since the last release. There is also a new version of the Eclipse feature and a new Eclipse update site. You can see a list of bug fixes and enhancements here: https://github.com/mybatis/generator/issues?q=milestone%3A1.3.3+is%3Aclosed The new artifacts are available in Maven central at ``` xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator</artifactId> <version>1.3.3</version> </dependency> ``` and ``` xml <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.3</version> </dependency> ``` The Eclipse update site is https://dl.bintray.com/mybatis/mybatis-generator/ You can also download the artifacts or the Eclipse update site here.

mybatis-generator-1.3.2 releasemybatis-generator-1.3.2
emacarronemacarron·12y ago·November 8, 2013
GitHub
mybatis-generator-1.3.1 releasemybatis-generator-1.3.1
emacarronemacarron·12y ago·November 8, 2013
GitHub
mybatis-generator-1.3.0 releasemybatis-generator-1.3.0
emacarronemacarron·12y ago·November 8, 2013
GitHub