File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1680,8 +1680,9 @@ public class User {
1680
1680
<subsection name =" Auto-mapping" >
1681
1681
1682
1682
<p >
1683
- As you have already seen in the previous sections in simple cases MyBatis can auto-map the results for you and in others you
1684
- will need to build a result map. But as you will see in this section you can also mix both strategies.
1683
+ As you have already seen in the previous sections, in simple cases MyBatis can auto-map the results for you
1684
+ and in others you will need to build a result map.
1685
+ But as you will see in this section you can also mix both strategies.
1685
1686
Let's have a deeper look at how auto-mapping works.
1686
1687
</p >
1687
1688
@@ -1753,7 +1754,7 @@ public class User {
1753
1754
</resultMap>]]> </source >
1754
1755
1755
1756
<p >
1756
- With this result map both <i >Blog</i > and <i >Author</i > will be auto-mapped. But note that <i >Author</i > has an <i >id</i >
1757
+ With this result map both <i >Blog</i > and <i >Author</i > will be auto-mapped. But note that <i >Author</i > has a <i >id</i >
1757
1758
property and there is an column named <i >id</i > in the ResultSet so Author's id will be filled with Blog's id, and that is not
1758
1759
what you were expecting. So use the <code >FULL</code > option with caution.
1759
1760
</p >
You can’t perform that action at this time.
0 commit comments