Skip to content

Releases: mybatis/generator

MyBatis Generator 2.0.0

08 Apr 17:06

Choose a tag to compare

This is a major release of the generator. Please read the detailed release notes here: https://mybatis.org/generator/whatsNew.html

Major changes in the generator include:

  • 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 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

There are many other changes, and there are some breaking changes as well. We've tried to keep the breaking changes to a minimum, but some were necessary as we've also completed a major modernization and refactoring of the entire code base.

Please feel free to ask questions if you experience difficulties or find issues.

The GitHub milestone for this release is here: https://github.com/mybatis/generator/issues?q=milestone%3A2.0.0

The new artifacts are available in Maven central at

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator-core</artifactId>
    <version>2.0.0</version>
</dependency>

and

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator-maven-plugin</artifactId>
    <version>2.0.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.4.2

20 Feb 02:20

Choose a tag to compare

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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.4.2</version>
</dependency>

and

<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.1

08 Mar 22:30

Choose a tag to compare

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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.4.1</version>
</dependency>

and

<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.0

24 Nov 22:39

Choose a tag to compare

This is a major release of the generator. Important themes include:

  1. Kotlin! New runtime for generating Kotlin code
  2. Updated runtime for MyBatis Dynamic SQL
  3. Removal of support for iBatis2
  4. 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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.4.0</version>
</dependency>

and

<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.7

04 Jul 22:13

Choose a tag to compare

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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.3.7</version>
</dependency>

and

<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.6

21 Dec 18:02

Choose a tag to compare

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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.3.6</version>
</dependency>

and

<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.5

07 Sep 01:31

Choose a tag to compare

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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.3.5</version>
</dependency>

and

<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.4

19 Aug 01:18

Choose a tag to compare

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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.3.4</version>
</dependency>

and

<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.3

24 Jun 22:50

Choose a tag to compare

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

<dependency>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator</artifactId>
    <version>1.3.3</version>
</dependency>

and

<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 release

08 Nov 18:37

Choose a tag to compare

[maven-release-plugin]  copy for tag mybatis-generator-1.3.2