Skip to content

Commit 3c9f435

Browse files
committed
Support auto-detecting YearMonthTypeHandler
Fix gh-878
1 parent 787b1cb commit 3c9f435

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/apache/ibatis/type/TypeHandlerRegistry.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
/**
3838
* @author Clinton Begin
39+
* @author Kazuki Shimizu
3940
*/
4041
public final class TypeHandlerRegistry {
4142

@@ -142,6 +143,7 @@ public TypeHandlerRegistry() {
142143
register("java.time.Month", "org.apache.ibatis.type.MonthTypeHandler");
143144
register("java.time.Year", "org.apache.ibatis.type.YearTypeHandler");
144145
// since 1.0.2
146+
register("java.time.YearMonth", "org.apache.ibatis.type.YearMonthTypeHandler");
145147
register("java.time.chrono.JapaneseDate", "org.apache.ibatis.type.JapaneseDateTypeHandler");
146148

147149
} catch (ClassNotFoundException e) {

0 commit comments

Comments
 (0)