Sunday, April 24, 2016

MyBatipse (Eclipse plugin) is updated to 1.0.18.

Dear Eclipse users,

MyBatipse has been updated to 1.0.18.
  • Auto-complete keyProperty attribute in @Options and @SelectKey annotation
  • Auto-complete property attribute in @Result annotation
  • Open XML element from a hyperlink on a method invocation (it's handy!).

Please see the GitHub page for the full feature list and other information.

Enjoy!

Tuesday, April 19, 2016

MyBatis 3.4.0 & MyBatis-Spring 1.3.0 & Boot-Starter 1.1.1 releases!

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

See the details at the project's tracker

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!

Friday, April 8, 2016

MyBatis-TypeHandlers-JSR310 1.0.0 released!

Dear Community,

We are pleased to announce that version 1.0.0 of mybatis-typehandlers-jsr310 has been released.

It contains type handlers for the new Date and Time API (JSR-310) classes added in Java 8.
For maven users:
  • If you are using mybatis version 3.4 or later, you can simply add this artifact on your classpath and MyBatis will automatically register the provided type handlers.
  • If you are using and older version, you need to register the type handlers manually.
Please see the GitHub repository for the details.
Non-maven users can download the binary distribution from GitHub release page.

Thanks to people who is contributing with PRs.

Enjoy!

Tuesday, March 29, 2016

Mybatis-Spring 1.2.5 hot-fix released

Dear Community,

We have just released Spring 1.2.5 as a hot fix for this issue.

This issue will only affect spring-boot users that are using the spring-boot-starter adapter.

Jars are available as usual in Github and Maven Central.

Sincerely,
The MyBatis Team.

Tuesday, March 15, 2016

Mybatis-spring-boot 1.0.1 released!

Dear Community

We are pleased to announce that mybatis-spring-boot 1.0.1 has been released.

Some issues have been resolved with the upgrade of mybatis 3.3.1 and mybatis-spring 1.2.4 modules and there are also some improvements.

Thanks to people who is contributing with PRs.

Enjoy!