Skip to content

Commit 13f516a

Browse files
committed
Type handler resolution is now delayed so that JdbcType is taken into account
Fail-fast is nice, but it practically prevents MyBatis from using runtime JDBC type information to resolve type handler. Related to mybatis#9 mybatis#19
1 parent 8a79493 commit 13f516a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/org/apache/ibatis/mapping/ResultMapping.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,6 @@ private void validate() {
164164
throw new IllegalStateException(
165165
"Cannot define both nestedQueryId and nestedResultMapId in property " + resultMapping.property);
166166
}
167-
// Issue #5: there should be no mappings without typehandler
168-
if (resultMapping.nestedQueryId == null && resultMapping.nestedResultMapId == null
169-
&& resultMapping.typeHandler == null) {
170-
// throw new IllegalStateException("No typehandler found for property " + resultMapping.property);
171-
}
172167
// Issue #4 and GH #39: column is optional only in nested resultmaps but not in the rest
173168
if (resultMapping.nestedResultMapId == null && resultMapping.column == null
174169
&& resultMapping.composites.isEmpty()) {

0 commit comments

Comments
 (0)