You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/zh/xdoc/sqlmap-xml.xml
+7-10Lines changed: 7 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -982,8 +982,8 @@ jdbcType
982
982
}]]></source>
983
983
984
984
<p>
985
-
In order to inject the results into the constructor, MyBatis needs to identify the constructor for somehow.
986
-
In the following example, MyBatis searches a constructor declared with three parameters: <code>java.lang.Integer</code>, <code>java.lang.String</code> and <code>int</code> in this order.
985
+
为了将结果注入构造方法,MyBatis需要通过某种方式定位相应的构造方法。
986
+
在下面的例子中,MyBatis搜索一个声明了三个形参的的构造方法,以 <code>java.lang.Integer</code>, <code>java.lang.String</code> and <code>int</code> 的顺序排列。
987
987
</p>
988
988
989
989
<source><![CDATA[<constructor>
@@ -993,9 +993,8 @@ jdbcType
993
993
</constructor>]]></source>
994
994
995
995
<p>
996
-
When you are dealing with a constructor with many parameters, maintaining the order of arg elements is error-prone.<br />
997
-
Since 3.4.3, by specifying the name of each parameter, you can write arg elements in any order. To reference constructor parameters by their names, you can either add <code>@Param</code> annotation to them or compile the project with '-parameters' compiler option and enable <code>useActualParamName</code> (this option is enabled by default).
998
-
The following example is valid for the same constructor even though the order of the second and the third parameters does not match with the declared order.
0 commit comments