Skip to content

MyBatis Dynamic SQL Release 1.5.0

Compare
Choose a tag to compare
@jeffgbutler jeffgbutler released this 21 Apr 17:13
· 654 commits to master since this release

This release includes many new features and one potential breaking change.

In addition, much of the deprecated code in prior releases was removed.

Potentially Breaking Change

If you create reusable where clauses with the library, and use the WhereSupplier class, the syntax has changed. This change was required when we added support for having clauses (see below). Please see the release notes for full details.

New Features

  • Add support for having clauses. Having clauses have the same syntax and capabilities as where clauses. You can also write standalone having clauses if you have a need to reuse them.
  • Add "multi select" queries - where multiple complete select statements - including order by and limit clauses - can be composed in a union query
  • Add a new "map to row" function in insert, batch insert, and multi-row insert statements that allows you to insert a simple object like Integer or String - or a list of simple objects
  • Several other enhancements detailed in the release notes

The full list of changes is available here: https://github.com/mybatis/mybatis-dynamic-sql/milestone/12?closed=1

Please read the full release notes for details: https://mybatis.org/mybatis-dynamic-sql/docs/CHANGELOG.html#release-1-5-0-april-21-2023

All artifacts are available in Maven central under these coordinates:

<dependency>
  <groupId>org.mybatis.dynamic-sql</groupId>
  <artifactId>mybatis-dynamic-sql</artifactId>
  <version>1.5.0</version>
</dependency>