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/markdown/sqlmap-xml.md
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -570,7 +570,7 @@ The `resultMap` element has a number of sub-elements and a structure worthy of s
570
570
-`result` – a normal result injected into a field or JavaBean property
571
571
-`association` – a complex type association; many results will roll up into this type
572
572
- nested result mappings – associations are `resultMap`s themselves, or can refer to one
573
-
- collection – a collection of complex types
573
+
-`collection` – a collection of complex types
574
574
- nested result mappings – collections are `resultMap`s themselves, or can refer to one
575
575
-`discriminator` – uses a result value to determine which `resultMap` to use
576
576
-`case` – a case is a result map based on some value
@@ -647,7 +647,7 @@ In order to inject the results into the constructor, MyBatis needs to identify t
647
647
</constructor>
648
648
```
649
649
650
-
When you are dealing with a constructor with many parameters, maintaining the order of arg elements is error-prone.
650
+
When you are dealing with a constructor with many parameters, maintaining the order of arg elements is error-prone.
651
651
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 `@Param` annotation to them or compile the project with '-parameters' compiler option and enable `useActualParamName` (this option is enabled by default). 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.
652
652
653
653
```xml
@@ -1137,6 +1137,9 @@ Auto-mapping works even when there is an specific result map. When this happens,
@@ -1258,7 +1264,7 @@ To configure your cache, simply add public JavaBeans properties to your Cache im
1258
1264
</cache>
1259
1265
```
1260
1266
1261
-
You can use JavaBeans properties of all simple types, MyBatis will do the conversion. And you can specify a placeholder(e.g. `\${cache.file}`) to replace value defined at [configuration properties](https://mybatis.org/mybatis-3/configuration.html#properties).
1267
+
You can use JavaBeans properties of all simple types, MyBatis will do the conversion. And you can specify a placeholder(e.g. `\${cache.file}`) to replace value defined at [configuration properties](configuration.html#properties).
1262
1268
1263
1269
Since 3.4.2, the MyBatis has been supported to call an initialization method after it's set all properties. If you want to use this feature, please implements the `org.apache.ibatis.builder.InitializingObject` interface on your custom cache class.
0 commit comments