Skip to content

Commit d138e1b

Browse files
committed
Externalize message
1 parent 565d703 commit d138e1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/mybatis/dynamic/sql/util/SqlProviderAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public String insertMultipleWithGeneratedKeys(Map<String, Object> parameterMap)
8181
if (entries.size() == 1) {
8282
return entries.get(0);
8383
} else {
84-
throw new IllegalArgumentException("The parameters for insertMultipleWithGeneratedKeys" //$NON-NLS-1$
85-
+ " must contain exactly one parameter of type String"); //$NON-NLS-1$
84+
throw new IllegalArgumentException(Messages.getString("ERROR.30")); //$NON-NLS-1$
8685
}
8786
}
8887

src/main/resources/org/mybatis/dynamic/sql/util/messages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ ERROR.26=Multiple Row Insert Statements Must Contain an "into" phrase
4545
ERROR.27=You must specify a "from" clause before any other clauses in a select statement
4646
ERROR.28=You must specify a select statement in a sub query
4747
ERROR.29=Insert Select Statements Must Contain an "into" phrase
48+
ERROR.30=The parameters for insertMultipleWithGeneratedKeys must contain exactly one parameter of type String

0 commit comments

Comments
 (0)