Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I know this is really a big change, and may bring up some backward compatible problem, so suggest is welcome
Add future
org.apache.ibatis.reflection.type.jackson package. Now use JavaType from external Jackson first. TypeHandler lost information of actualTypeArguments when class is ParameterizedType #2187
need to write typeHandler="ArrayTypeHandler" in xml
get returnType
Other changes
ParamNameResolver#getNamedParams return a ParamMap, MapDescriptorResolvedType contains each value ResolvedType
for #{array[0]}
methods are default for backward compatible
lost of code to their project. make method protected, so that mybatisPlus do not need copy
May be not backward compatible
For example user write a typeHandler for ArrayList<Object> but hope autoMapping for ArrayList<String>, this may no
problem before, but now autoMapping will can't find typeHandler, because of typeParameter not match
can just write typeHandler without write javaType, because javaType attribute can't resolve ParameterizedType. BaseBuilder#resolveTypeHandler does not account javaType for caching handlers #995
get parameter Class, not ParameterizedType
occur exception if user pass instance that not instanceof parameterType
stringValueMap. Mybatis use UnknownTypeHandler for Map parameter at before, there is no problem if user pass wrong
type. but now we can know we just need use IntegerTypeHandler to handle Map values, use IntegerTypeHandler to handle
String will occur exception