Sunday, June 26, 2016

MyBatis 3.4.1 and TypeHandlers-JSR310 1.0.1 are released!

Dear Community,

We are pleased to announce that MyBatis 3.4.1 and MyBatis-TypeHandlers-JSR310 1.0.1 are released.

MyBatis 3.4.1 includes four user visible enhancements
  • Allow referencing parameters by their declared names when compiled with Java 8 '-parameters' option. #549
  • Added auto-detection of Year/MonthTypeHandler added in mybatis-typehandlers-jsr310 1.0.1. #646
  • @Select statement can now return an array of objects. #669
  • Allow specifying custom 'reflectorFactory' in XML config. #657
and six bug fixes.
  • Circularly referenced resultMap was filled with ancestor object even when columnPrefix was specified. #215
  • Select statement with @Param couldn't be used as a nested select statement of association. #649
  • RuntimeException was thrown when launching application on IBM WebSphere Application Server 8.5.5.9. #706
  • Couldn't use Cursor as the return type of @Select statements. #661
  • Couldn't use RowBounds as a parameter of select statement whose return type is Cursor. #667
  • NullPointerException was thrown when used with Kylin JDBC driver. #699
Note that there is a change that may break existing code.
  • If a project uses legacy style parameter references with index numbers (i.e. #{0}, #{1}, ...) and is compiled with '-parameters' option, you may have to set useActualParameterName to false in the config.
See the details at the project's tracker

MyBatis-TypeHandlers-JSR310 1.0.1 provides two new type handlers.
  • YearTypeHandler for java.time.Year
  • MonthTypeHandler for java.time.Month
Non-maven users can download the binary distribution from Github releases page of each project.

And big thanks to those who contributed by sending pull requests, reporting issues and adding comments!

Enjoy!

No comments:

Post a Comment