File tree 1 file changed +5
-0
lines changed
src/main/java/org/apache/ibatis/type
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,18 @@ public TypeHandlerRegistry() {
127
127
128
128
// mybatis-typehandlers-jsr310
129
129
try {
130
+ // since 1.0.0
130
131
register ("java.time.Instant" , "org.apache.ibatis.type.InstantTypeHandler" );
131
132
register ("java.time.LocalDateTime" , "org.apache.ibatis.type.LocalDateTimeTypeHandler" );
132
133
register ("java.time.LocalDate" , "org.apache.ibatis.type.LocalDateTypeHandler" );
133
134
register ("java.time.LocalTime" , "org.apache.ibatis.type.LocalTimeTypeHandler" );
134
135
register ("java.time.OffsetDateTime" , "org.apache.ibatis.type.OffsetDateTimeTypeHandler" );
135
136
register ("java.time.OffsetTime" , "org.apache.ibatis.type.OffsetTimeTypeHandler" );
136
137
register ("java.time.ZonedDateTime" , "org.apache.ibatis.type.ZonedDateTimeTypeHandler" );
138
+ // since 1.0.1
139
+ register ("java.time.Month" , "org.apache.ibatis.type.MonthTypeHandler" );
140
+ register ("java.time.Year" , "org.apache.ibatis.type.YearTypeHandler" );
141
+
137
142
} catch (ClassNotFoundException e ) {
138
143
// no JSR-310 handlers
139
144
}
You can’t perform that action at this time.
0 commit comments