Skip to content

Commit 14f0f5d

Browse files
committed
resultMap.hasResultMapsUsingConstructorCollection should stay false if type handler is specified
1 parent 6e639f6 commit 14f0f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2024 the original author or authors.
2+
* Copyright 2009-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -116,7 +116,7 @@ public ResultMap build() {
116116
// #101
117117
Class<?> javaType = resultMapping.getJavaType();
118118
resultMap.hasResultMapsUsingConstructorCollection = resultMap.hasResultMapsUsingConstructorCollection
119-
|| (resultMapping.getNestedQueryId() == null && javaType != null
119+
|| (resultMapping.getNestedQueryId() == null && resultMapping.getTypeHandler() == null && javaType != null
120120
&& resultMap.configuration.getObjectFactory().isCollection(javaType));
121121

122122
if (resultMapping.getProperty() != null) {

0 commit comments

Comments
 (0)