Skip to content

Commit 5244c0b

Browse files
committed
Wrong exception text. The check applies to all mappings but to nested
resultmaps. Related to #39.
1 parent 58cab5e commit 5244c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private void validate() {
148148
}
149149
// Issue #4 and GH #39: column is optional only in nested resultmaps but not in the rest
150150
if (resultMapping.nestedResultMapId == null && resultMapping.column == null && resultMapping.composites.size() == 0) {
151-
throw new IllegalStateException("Missing column attribute for nested select in mapping " + resultMapping.property);
151+
throw new IllegalStateException("Missing column attribute for mapping " + resultMapping.property);
152152
}
153153
if (resultMapping.getResultSet() != null) {
154154
int numColums = 0;

0 commit comments

Comments
 (0)