Author: gbayon
Date: Wed Oct 19 12:54:02 2005
New Revision: 326663

URL: http://svn.apache.org/viewcvs?rev=326663&view=rev
Log:
- Updated doc

Modified:
    ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml
    ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml

Modified: ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml?rev=326663&r1=326662&r2=326663&view=diff
==============================================================================
--- ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml (original)
+++ ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml Wed Oct 19 12:54:02 
2005
@@ -2178,6 +2178,15 @@
  </logging>
 &lt;/iBATIS&gt;</programlisting></para>
 
+    <para><programlisting>&lt;iBATIS&gt;
+ &lt;logging&gt;
+  &lt;logFactoryAdapter type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA, 
IBatisNet.Common.Logging.Log4Net"&gt;
+   &lt;arg key="configType" value="file" /&gt;
+   &lt;arg key="configFile" value="log4Net.config" /&gt;
+  &lt;/logFactoryAdapter&gt;
+ &lt;/logging&gt;
+&lt;/iBATIS&gt;</programlisting></para>
+
     <para>The Log4NetLoggerFA supports the following values for the
     configTypes argument:<table>
         <title>Valid configType values</title>

Modified: ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml?rev=326663&r1=326662&r2=326663&view=diff
==============================================================================
--- ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml (original)
+++ ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml Wed Oct 19 12:54:02 
2005
@@ -903,6 +903,28 @@
             Models, see Section 3.8.</para>
           </example></para>
       </sect3>
+
+         <sect3>
+        <title>extends</title>
+                   <para>When writing Sql, you often encounter duplicate 
fragments of SQL. iBATIS offers a simple yet powerful attribute to reuse 
them.</para>
+
+                        <para><programlisting>
+&lt;select id="<emphasis role="blue">GetAllAccounts</emphasis>"
+  resultMap="indexed-account-result"&gt;
+select
+  Account_ID,
+  Account_FirstName,
+  Account_LastName,
+  Account_Email
+from Accounts
+&lt;/select&gt;
+               
+&lt;select id="GetAllAccountsOrderByName"
+  extends="<emphasis role="blue">GetAllAccounts</emphasis>"
+  resultMap="indexed-account-result"&gt;
+    order by Account_FirstName
+&lt;/select&gt;</programlisting></para>
+         </sect3>
     </sect2>
   </sect1>
 


Reply via email to