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>
</iBATIS></programlisting></para>
+ <para><programlisting><iBATIS>
+ <logging>
+ <logFactoryAdapter type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA,
IBatisNet.Common.Logging.Log4Net">
+ <arg key="configType" value="file" />
+ <arg key="configFile" value="log4Net.config" />
+ </logFactoryAdapter>
+ </logging>
+</iBATIS></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>
+<select id="<emphasis role="blue">GetAllAccounts</emphasis>"
+ resultMap="indexed-account-result">
+select
+ Account_ID,
+ Account_FirstName,
+ Account_LastName,
+ Account_Email
+from Accounts
+</select>
+
+<select id="GetAllAccountsOrderByName"
+ extends="<emphasis role="blue">GetAllAccounts</emphasis>"
+ resultMap="indexed-account-result">
+ order by Account_FirstName
+</select></programlisting></para>
+ </sect3>
</sect2>
</sect1>