Tuesday, August 22, 2017

MyBatis-Ignite 1.0.6 released!

Dear Community,

We have released mybatis-ignite 1.0.6 which updates Apache Ignite to 2.1.0 and MyBatis 3.4.5.

Project is available on GitHub and Maven Central.

Thanks and enjoy!

Sunday, August 20, 2017

Mybatis-Spring-Boot-Starter 1.2.2 & 1.3.1 released!

Dear MyBatis Community,

I am pleased to announce 1.2.2 and 1.3.1 releases of mybatis-spring-boot-starter project.

Highlights from this release:

  • Upgrade to Mybatis 3.4.5 (#174)
  • Upgrade to Spring Boot 1.5.6.RELEASE on 1.3.1 (#181)
  • Upgrade to Spring Boot 1.4.7.RELEASE on 1.2.2 (#172)
  • Supports input completion for  defaultScriptingLanguage and defaultEnumTypeHandler on 1.3.1 (#159 #175)

For full changes, please refer to release note.

Let's Enjoy!

Sincerely,
The MyBatis Team

MyBatis 3.4.5 released!

Dear Community,

We are pleased to announce the release of MyBatis 3.4.5.
Here is the list of user visible changes.

Enhancements:
  • Make default enum type handler customizable. #971
  • Make mapper method and its interface type accessible to SqlProvider. #1055
  • Allow using configuration properties in SqlProvider. #1061
  • Merge type handlers for JSR-310 (Java Date and Time API) into the core. #974
Bug fixes:
  • The type handler registered for a common interface of enums was not applied correctly. #976
  • Lazy loading should not overwrite a property value set by user. #988
  • Prevent foreach xml tag from polluting the global context. #966
  • Some parameter names (e.g. 'size') can cause ClassCastException. #1031
  • Not all result sets are processed when UPDATE or INSERT is performed in between. #1036
  • With PostgreSQL, ExecutorException is thrown if useGeneratedKeys is enabled globally. #902
There should be no backward incompatible change since 3.4.4.
Follow this link to see the full list of changes.
Binaries are available on the release page and Maven Central.

Many thanks to those who reported issues, sent pull requests or joined discussions!

Sincerely,
The MyBatis Team

Saturday, June 24, 2017

MyBatis Step by Step Guide book available (Chinese)

MyBatis 从入门到精通

本书中从一个简单的MyBatis 查询入手,搭建起学习MyBatis 的基础开发环境。通过全面的示例代码和测试讲解了在MyBatis XML 方式和注解方式中进行增、删、改、查操作的基本用法,介绍了动态SQL在不同方面的应用以及在使用过程中的最佳实践方案。针对MyBatis 高级映射、存储过程和类型处理器提供了丰富的示例,通过自下而上的方法使读者更好地理解和掌握MyBatis 的高级用法,同时针对MyBatis的代码生成器提供了详细的配置介绍。此外,本书还提供了缓存配置、插件开发、Spring、Spring Boot 集成的详细内容。最后通过介绍Git 和GitHub 让读者了解MyBatis 开源项目,通过对MyBatis 源码和测试用例的讲解让读者更好掌握MyBatis。
This book starts with a simple MyBatis query and builds the basic development environment for learning MyBatis. Through the comprehensive sample code and test to explain in the MyBatis XML way and annotation way to insert, delete, update and select operation. Introduces the MyBatis dynamic SQL in different aspects and the best practices in the use of the program. For the MyBatis advanced mapping, stored procedures and typehandler provides a rich example, through the bottom-up approach to enable readers to better understand and master the advanced usage of MyBatis, and for MyBatis code generator provides a detailed configuration introduced in Chinese. In addition, the book also provides cache configuration, plug-in development, Spring, Spring Boot integration details. Finally, by introducing Git and GitHub to let readers know MyBatis open source project, through MyBatis source code and test cases to give readers a better grasp of MyBatis.
The book contains the following chapters.
  • MyBatis Quick Start
  • The basic usage of MyBatis XML
  • The basic usage of the MyBatis annotation
  • MyBatis Dynamic SQL
  • Mybatis Generator
  • MyBatis Advanced Query
  • MyBatis cache configuration
  • MyBatis plugin development
  • Spring integrates MyBatis
  • Spring Boot integrates MyBatis
  • MyBatis open source project
More details at:

Tuesday, May 16, 2017

MyBatis-Ignite 1.0.5 released!

Dear Community,

We have released mybatis-ignite 1.0.5 which updates Apache Ignite to a brand new 2.0.0 and has MyBatis 3.4.4 in core.

Project is available on GitHub and Maven Central.

Thanks and enjoy!

Tuesday, April 25, 2017

MyBatis-Migrations 3.3.0 and TypeHandlers-ThreeTen-Extra 1.0.0 released!

Dear MyBatis Community,

We are pleased to announce two new releases :

mybatis-typehandlers-threeten-extra 1.0.0 contains additional type handlers for ThreeTen-Extra.
Please see the README for the list of type handlers.

mybatis-migrations 3.3.0 includes two enhancements 
  • Support pre/post-migration hooks #52
  • Support onabort.sql executed when migration is aborted. #47
and three bug fixes:
  • Migration succeeds even if compiling procedure failed. #46
  • Down command does not work with case sensitive column names. #65
  • Variable substitution does not work in custom templates. #69
Enjoy!

Monday, April 10, 2017

Mybatis-Spring-Boot-Starter 1.2.1 & 1.3.0 released!

Dear Mybatis Community,

I am pleased to announce 1.2.1 and 1.3.0 releases of mybatis-spring-boot-starter project.

Highlights from this release:

  • Upgrade to Mybatis 3.4.4
  • Add @MybatisTest for slicing tests
  • Add ConfigurationCustomizer
  • Version 1.2.1 keeps compatibility with Spring Boot 1.4.x
  • Version 1.3.0 has been upgraded with Spring Boot 1.5.x

Enjoy!

Saturday, April 8, 2017

MyBatis 3.4.4 released!

Dear Community,
We are pleased to announce the release of MyBatis 3.4.4.
Version 3.4.3 was supposed to be the latest version, but there was an error in the JAR on Maven Central and we had to release 3.4.4.
Enhancements:
  • Allow registering a type handler for a common interface of enums. #947
  • Share Jdbc3KeyGenerator and NoKeyGenerator instances #882
  • Building UPDATE JOIN statement by SQL Builder #903
Bug fixes:
  • Failed to find a statement mapped to a super interface #481
  • Default methods support on mappers, does not work for non-public mappers. #905
  • foreignColumns with multiple columns validation error #526
  • Fix wrong registration logic for LanguageDriver #914
  • A boolean property should be able to have two getters: isX() and getX() #906
  • Fix possible unexpected auto-mapping #895
  • Excessive memory allocation for primitive arrays in nested result maps #927
There should be no backward incompatible change since 3.4.2.
Follow this link to see the full list of changes.
As usual, binaries are available on the release page and Maven Central.
Many thanks to those who reported issues, sent pull requests or joined discussions!
We plan to release new versions of mybatis-spring-boot-starter, migrations, etc. so stay tuned!
Sincerely,
The MyBatis Team

Thursday, March 2, 2017

MyBatipse (Eclipse plugin) 1.1.0 is released!

Dear MyBatis - Eclipse users,

We have released version 1.1.0 of MyBatipse.
This version requires Eclipse 4.4 (Luna) or later.

Only two bug fixes:
  • Enum type alias is not correctly resolved.
  • 'Move @Results to <resultMap />' quick assist should move @ConstructorArgs to <constructor /> as well.
Please see the GitHub page for general information.

Enjoy!

Wednesday, January 4, 2017

MyBatis 3.4.2, MyBatis-Spring 1.3.1, Spring-Boot-Starter 1.2.0 and TypeHandlers-JSR310 1.0.2 released!

Dear Community,

We have just released the modules below.
Please follow the links to see the details.


JARs are available on Github and Maven Central.
As a side note, Spring Initializer has already been updated to use these latest versions.

Many thanks to those who reported issues, sent pull requests or joined discussions!

Sincerely,
The MyBatis Team.