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
<p>While the various insert, update, delete and select methods above are powerful, they are also very verbose, not type safe and not as helpful to your IDE or unit tests as they could be. We've already seen an example of using Mappers in the Getting Started section above.</p>
288
288
<p>Therefore, a more common way to execute mapped statements is to use Mapper classes. A mapper class is simply an interface with method definitions that match up against the SqlSession methods. The following example class demonstrates some method signatures and how they map to the SqlSession.</p>
<p>In a nutshell, each Mapper method signature should match that of the SqlSession method that it's associated to, but without the String parameter ID. Instead, the method name must match the mapped statement ID.</p>
@@ -574,7 +574,7 @@ User getUserById(Integer id);
574
574
@Select("select * from company where id = #{id}")
575
575
Company getCompanyById(Integer id);</source>
576
576
577
-
<p>This example shows solo parameter using the Sql Provider annotation:</p>
577
+
<p>This example shows solo parameter using the SelectProvider annotation:</p>
0 commit comments