You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by ro...@apache.org on 2005/05/24 06:56:05 UTC

svn commit: r178076 - in /incubator/ibatis/trunk/cs: docs/dataAccessGuide/styles/fopdf.xsl docs/dataMapperGuide/src/en/dotnet.xml docs/dataMapperGuide/src/en/index.xml docs/dataMapperGuide/src/en/working.xml docs/dataMapperGuide/styles/fopdf.xsl to-do.txt

Author: roberto
Date: Mon May 23 21:56:05 2005
New Revision: 178076

URL: http://svn.apache.org/viewcvs?rev=178076&view=rev
Log:
~Updated C# DataMapper docs (minor updates...)

Modified:
    incubator/ibatis/trunk/cs/docs/dataAccessGuide/styles/fopdf.xsl
    incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml
    incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/index.xml
    incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
    incubator/ibatis/trunk/cs/docs/dataMapperGuide/styles/fopdf.xsl
    incubator/ibatis/trunk/cs/to-do.txt

Modified: incubator/ibatis/trunk/cs/docs/dataAccessGuide/styles/fopdf.xsl
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/docs/dataAccessGuide/styles/fopdf.xsl?rev=178076&r1=178075&r2=178076&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/docs/dataAccessGuide/styles/fopdf.xsl (original)
+++ incubator/ibatis/trunk/cs/docs/dataAccessGuide/styles/fopdf.xsl Mon May 23 21:56:05 2005
@@ -61,7 +61,7 @@
                     <fo:table-row>
                         <fo:table-cell text-align="center">
 							<fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
-                                <xsl:text>Copyright 2003,2004 The Apache Software Foundation</xsl:text>
+                                <xsl:text>Copyright 2003, 2004, 2005 The Apache Software Foundation</xsl:text>
                             </fo:block>
 							 <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
                                 <xsl:text>Authors - </xsl:text>

Modified: incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml?rev=178076&r1=178075&r2=178076&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml (original)
+++ incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/dotnet.xml Mon May 23 21:56:05 2005
@@ -245,7 +245,7 @@
       <para>You can also use an absolute path to your Data Map definition
       files, if that is more convenient. Use use the url attribute instead
       through
-      <parameter>url="file:///C:/Projects/MySolution/MyProject/Maps/Account.xml"</parameter>,
+      <parameter>url="C:/Projects/MySolution/MyProject/Maps/Account.xml"</parameter>,
       and substitute the path to your own map document.</para>
 
       <para>Of course, the <filename>SqlMap.config</filename> file must be in
@@ -290,8 +290,8 @@
     <sect2>
       <title>DataMapper Configuration File (SqlMap.config)</title>
 
-      <para>A sample configuration file for .NET is shown in Example
-      4.1.</para>
+      <para>A sample configuration file for a .NET web application is shown in
+      Example 4.1.</para>
 
       <para><example>
           <title>SqlMap.Config for .NET Web Application (placed in same
@@ -302,7 +302,7 @@
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:noNamespaceSchemaLocation="SqlMapConfig.xsd"&gt;
 
-  &lt;properties resource="/Resources/database.properties"/&gt;
+  &lt;properties resource="Maps/database.properties"/&gt;
 
   &lt;settings&gt;
     &lt;setting useFullyQualifiedStatementNames="false"/&gt;
@@ -324,8 +324,8 @@
   &lt;/alias&gt;
 
   &lt;sqlMaps&gt;
-    &lt;sqlMap resource="/Resources/Category.xml"/&gt;
-    &lt;sqlMap resource="/Resources/Product.xml"/&gt;
+    &lt;sqlMap resource="Maps/Category.xml"/&gt;
+    &lt;sqlMap resource="Maps/Product.xml"/&gt;
   &lt;/sqlMaps&gt; 
 &lt;/sqlMapConfig&gt;</programlisting>
         </example></para>
@@ -695,7 +695,7 @@
         A database system can use a custom provider or a generic ODBC
         provider. The iBATIS .NET DataMapper uses a pluggable approach to
         installing providers. Each provider is represented by an XML
-        descriptor element. The list of providers you might want to use can be
+        descriptor element. The list of providers you might want to use is
         kept in a separate XML descriptor file. The iBATIS .NET DataMapper
         distribution includes the standard
         <filename>providers.config</filename> file with a set of twelve
@@ -780,8 +780,8 @@
 
         <para><tip>
             <para>Be sure to review the <filename>providers.config</filename>
-            file and confirm that the provider you intend to use is enabled!
-            (Set the enabled attribute to true.)</para>
+            file and confirm that the provider you intend to use is enabled by
+            setting the "enabled" attribute to "true".</para>
           </tip></para>
       </sect3>
 
@@ -807,7 +807,7 @@
 
           <para>The &lt;datasource&gt; element specifies the ADO.NET
           connection string. Example 4.2, shows sample elements for SQL
-          Server, Oracle, Access, and MySql.<example>
+          Server, Oracle, Access, MySql, and PostgreSQL.<example>
               <title>Sample &lt;datasource&gt; and &lt;provider&gt; elements
               (.NET)</title>
 
@@ -842,6 +842,14 @@
   &lt;dataSource name="NPetstore" default="true" 
        connectionString="Host=${host};Database=${database};
        Password=${password};Username=${username}" /&gt;
+&lt;/database&gt;
+
+<emphasis role="comment">&lt;!-- Connecting to a PostgreSQL database --&gt;</emphasis> 
+&lt;database&gt;
+  &lt;provider name="PostgreSql0.7" /&gt;
+  &lt;dataSource name="NPetstore" default="true" 
+       connectionString="Server=${server};Port=5432;User Id=${userid};Password=${password};
+       Database=${database};" /&gt;
 &lt;/database&gt;</programlisting></para>
             </example></para>
         </sect4>
@@ -866,8 +874,8 @@
             <title>SqlMap elements</title>
 
             <programlisting>&lt;sqlMaps&gt;
-  &lt;sqlMap resource="/Resources/Category.xml"/&gt;
-  &lt;sqlMap resource="/Resources/Product.xml"/&gt;
+  &lt;sqlMap resource="Maps/Category.xml"/&gt;
+  &lt;sqlMap resource="Maps/Product.xml"/&gt;
 &lt;/sqlMaps&gt;</programlisting>
           </example></para>
 

Modified: incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/index.xml
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/index.xml?rev=178076&r1=178075&r2=178076&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/index.xml (original)
+++ incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/index.xml Mon May 23 21:56:05 2005
@@ -14,8 +14,8 @@
 <bookinfo>
     <title>iBATIS.NET - .NET Application Framework</title>
     <subtitle>Data Mapper Developer Guide</subtitle>
-    <releaseinfo>Version 1.1</releaseinfo>
-    <pubdate>01-01-2004</pubdate>
+    <releaseinfo>Version 1.2</releaseinfo>
+    <pubdate>1 June 2004</pubdate>
     <authorgroup>
       <author>
         <firstname>Ted</firstname>

Modified: incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml?rev=178076&r1=178075&r2=178076&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml (original)
+++ incubator/ibatis/trunk/cs/docs/dataMapperGuide/src/en/working.xml Mon May 23 21:56:05 2005
@@ -1793,7 +1793,7 @@
       <para><example>
           <title>&lt;typeHandler&gt; in SqlMap.config</title>
 
-          <programlisting><emphasis role="green">[Our SqlMap.config]</emphasis>
+          <programlisting><emphasis role="comment">[Our SqlMap.config]</emphasis>
 &lt;alias&gt;
  &lt;typeAlias <emphasis role="blue">alias="GuidVarchar"</emphasis> 
          type="BigApp.Common.TypeHandlers.GuidVarcharTypeHandlerCallback,
@@ -1806,7 +1806,7 @@
 &lt;/typeHandlers&gt; 
 
 
-<emphasis role="green">[One of our SqlMap.xml files]</emphasis>
+<emphasis role="comment">[One of our SqlMap.xml files]</emphasis>
 &lt;parameterMaps&gt;
  &lt;parameterMap id="boc-params"&gt;
   &lt;parameter property="Code" dbType="Varchar2" size="10"/&gt;
@@ -2254,12 +2254,12 @@
 &lt;/resultMaps&gt;
 
 &lt;statements&gt;
-  <emphasis role="green">&lt;!-- This statement executes 1 time --&gt;</emphasis>
+  <emphasis role="comment">&lt;!-- This statement executes 1 time --&gt;</emphasis>
   &lt;select id="selectProducts" parameterClass="int" resultMap="select-product-result"&gt;
    select * from PRODUCT
   &lt;/select&gt;
 
-  <emphasis role="green">&lt;!-- This statement executes N times (once for each product returned above) --&gt;</emphasis>
+  <emphasis role="comment">&lt;!-- This statement executes N times (once for each product returned above) --&gt;</emphasis>
   &lt;select id="selectCategory" parameterClass="int" resultMap="select-category-result"&gt;
    <emphasis role="blue">select * from CATEGORY where CAT_ID = #value#</emphasis>
   &lt;/select&gt;
@@ -2415,12 +2415,12 @@
 
 &lt;statements&gt;
 
-  <emphasis role="green">&lt;!-- This statement executes 1 time --&gt;</emphasis>
+  <emphasis role="comment">&lt;!-- This statement executes 1 time --&gt;</emphasis>
   &lt;statement id="selectCategory" parameterClass="int" resultMap="select-category-result"&gt;
     select * from CATEGORY where CAT_ID = #value#
   &lt;/statement&gt;
 
-  <emphasis role="green">&lt;!-- This statement executes N times (once for each category returned above) 
+  <emphasis role="comment">&lt;!-- This statement executes N times (once for each category returned above) 
        and returns a list of Products (1:M) --&gt;</emphasis>
   &lt;statement id="selectProductsByCatId" parameterClass="int" resultMap="select-product-result"&gt;
     <emphasis role="blue">select * from PRODUCT where PRD_CAT_ID = #value#</emphasis>

Modified: incubator/ibatis/trunk/cs/docs/dataMapperGuide/styles/fopdf.xsl
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/docs/dataMapperGuide/styles/fopdf.xsl?rev=178076&r1=178075&r2=178076&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/docs/dataMapperGuide/styles/fopdf.xsl (original)
+++ incubator/ibatis/trunk/cs/docs/dataMapperGuide/styles/fopdf.xsl Mon May 23 21:56:05 2005
@@ -61,7 +61,7 @@
                     <fo:table-row>
                         <fo:table-cell text-align="center">
                             <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
-                                <xsl:text>Copyright 2003,2004 The Apache Software Foundation</xsl:text>
+                                <xsl:text>Copyright 2003, 2004, 2005 The Apache Software Foundation</xsl:text>
                             </fo:block>
 							 <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
                                 <xsl:text>Authors - </xsl:text>

Modified: incubator/ibatis/trunk/cs/to-do.txt
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/to-do.txt?rev=178076&r1=178075&r2=178076&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/to-do.txt (original)
+++ incubator/ibatis/trunk/cs/to-do.txt Mon May 23 21:56:05 2005
@@ -9,9 +9,12 @@
 --------------------
 Docs
 --------------------
+ + Configuration changes (ex: properties support in diff't SqlMap.config elements)
+ + Add more .NET coding examples (at least the code!)
+ + Update NAnt doc.build for 1.2?
+
  + DONE Basic CTH explanation
  + DONE Update for basic TypeHandler support
- + Configuration changes
  + DONE New SqlMap element attributes
  + DONE Updated SqlMap element attributes
  + DONE Update inline parameter maps syntax and add text/examples for composite key syntax
@@ -34,10 +37,11 @@
  + ICloneable exception with no connectionstring
 
 Oracle/ODP.NET 10g
- + DONE ResultMapTest.TestDynamiqueCompositeMapping needs dbType (int vs Decimal) for resultMap column specification
  + ResultClassTest.TestSingle invalid cast provider/db issue
  + ResultClassTest.TestDouble invalid cast provider/db issue
 
+ + DONE ResultMapTest.TestDynamiqueCompositeMapping needs dbType (int vs Decimal) for resultMap column specification
+
 PostgreSQL/Npgsql 0.7
  + StatementGenerate.TestSelectByPK
  + Add Stored function NUnit tests
@@ -64,11 +68,11 @@
 Tutorial
 --------------------
 
- + DONE (did it 2 months ago?! but I forgot!) Update for DataMapper 1.1 GA release
+ + DONE (did it 2 months ago but forgot!) Update for DataMapper 1.1 GA release
 
 
 --------------------
 NPetshop
 --------------------
 
- + DONE (did it 2 months ago?! but I forgot!) Update for DataMapper 1.1 GA release
\ No newline at end of file
+ + DONE (did it 2 months ago but forgot!) Update for DataMapper 1.1 GA release
\ No newline at end of file