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

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


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.
  • 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!
The MyBatis Team