File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/apache/ibatis/mapping Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,15 +140,15 @@ public ResultMapping build() {
140
140
private void validate () {
141
141
// Issue #697: cannot define both nestedQueryId and nestedResultMapId
142
142
if (resultMapping .nestedQueryId != null && resultMapping .nestedResultMapId != null ) {
143
- throw new IllegalStateException ("Cannot define both nestedQueryId and nestedResultMapId in mapping " + resultMapping .property );
143
+ throw new IllegalStateException ("Cannot define both nestedQueryId and nestedResultMapId in property " + resultMapping .property );
144
144
}
145
145
// Issue #5: there should be no mappings without typehandler
146
146
if (resultMapping .nestedQueryId == null && resultMapping .nestedResultMapId == null && resultMapping .typeHandler == null ) {
147
- throw new IllegalStateException ("No typehandler found for mapping " + resultMapping .property );
147
+ throw new IllegalStateException ("No typehandler found for property " + resultMapping .property );
148
148
}
149
149
// Issue #4 and GH #39: column is optional only in nested resultmaps but not in the rest
150
150
if (resultMapping .nestedResultMapId == null && resultMapping .column == null && resultMapping .composites .size () == 0 ) {
151
- throw new IllegalStateException ("Missing column attribute for mapping " + resultMapping .property );
151
+ throw new IllegalStateException ("Mapping is missing column attribute for property " + resultMapping .property );
152
152
}
153
153
if (resultMapping .getResultSet () != null ) {
154
154
int numColums = 0 ;
You can’t perform that action at this time.
0 commit comments