Dear Community,
We are pleased to announce three new releases.
MyBatis 3.4.0 with the following main features:
- New Cursor List method in SqlSession.
- Inherit Spring timeout in transactions.
- Better support for generic types.
- Out-of-the-box support new Date and Time API (JSR-310) classes added in Java 8.
Note that there are changes that may break existing code.
- New method getTimeout() in the Transaction interface. If you implemented your own transaction adapter you will need to implement this method at least with a "return null"
- @Options( flushCache ) now takes enum values (DEFAULT/TRUE/FALSE) instead of boolean.
- StatementHandler#prepare(Connection) has been changed to StatementHandler#prepare(Connection,Integer) given that now it gets the transaction timeout.
See the details at
the project's tracker
MyBatis-Spring 1.3.0 with:
- Support for Cursor List (also for Spring Batch)
- Requires MyBatis 3.4.0
And MyBatis-Spring-Boot-Starter 1.1.1 that includes:
- Autoscan will only pick interfaces annotated with @Mapper. Note that this change is backward incompatible. In case you are not using the @MapperScan annotation you should mark your mappers with the new @Mapper annotation shipped with MyBatis 3.4.0.
- Requires MyBatis-Spring 1.3.0
- And yes... your suspicions are correct, there is no 1.1.0 version. In fact, it is in maven central but the artifact is wrong :)
See the details at
the project's tracker
Please see the
GitHub project for the details.
Non-maven users can download the binary distribution from Github releases.
Thanks to people who is contributing with PRs.
Enjoy!