Sunday, March 11, 2012

MyBatis 3.1.0 released


Dear community,

MyBatis Team is pleased to announce the release of MyBatis 3.1.0

This version fixes a long list of bugs and provides new features like multi-db support, improved Jdbc3 key generation support, Scala support, selective logging, child-parent relations on joins, performace optimizations and some others. See the details in the tracker.

As usually it is available in the downloads section and in maven central repository.

Note that MyBatis bundle no longer includes the Migrations tool. Migrations 3.1.0 will be released as a separated module in a few days.

A note about upgrading from 3.0.x to 3.1.x. 

3.1 should be a drop-in in almost all cases but there is a reason for the version number change so be aware of the following points.

Fix for issue #168 may cause a change in the number of nested instances returned by a query with nested resultmaps in specific (not very common) circumstances.

Some internal object signatures have changed so check your plugins in case you are using any. 

These interfaces have been changed:
- Transaction/TransactionFactory -> new method to create a Transaction out of a DataSource
- ObjectFactory -> new method isCollection()
- TypeHandler -> new method to get values by index

Dependencies: If you are using MyBatis-Spring 1.0.x upgrade it to 1.1.0 that will be available in a short time.

Thank your all for your contributions and help! 

No comments:

Post a Comment