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">
- <properties resource="/Resources/database.properties"/>
+ <properties resource="Maps/database.properties"/>
<settings>
<setting useFullyQualifiedStatementNames="false"/>
@@ -324,8 +324,8 @@
</alias>
<sqlMaps>
- <sqlMap resource="/Resources/Category.xml"/>
- <sqlMap resource="/Resources/Product.xml"/>
+ <sqlMap resource="Maps/Category.xml"/>
+ <sqlMap resource="Maps/Product.xml"/>
</sqlMaps>
</sqlMapConfig></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 <datasource> 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 <datasource> and <provider> elements
(.NET)</title>
@@ -842,6 +842,14 @@
<dataSource name="NPetstore" default="true"
connectionString="Host=${host};Database=${database};
Password=${password};Username=${username}" />
+</database>
+
+<emphasis role="comment"><!-- Connecting to a PostgreSQL database --></emphasis>
+<database>
+ <provider name="PostgreSql0.7" />
+ <dataSource name="NPetstore" default="true"
+ connectionString="Server=${server};Port=5432;User Id=${userid};Password=${password};
+ Database=${database};" />
</database></programlisting></para>
</example></para>
</sect4>
@@ -866,8 +874,8 @@
<title>SqlMap elements</title>
<programlisting><sqlMaps>
- <sqlMap resource="/Resources/Category.xml"/>
- <sqlMap resource="/Resources/Product.xml"/>
+ <sqlMap resource="Maps/Category.xml"/>
+ <sqlMap resource="Maps/Product.xml"/>
</sqlMaps></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><typeHandler> in SqlMap.config</title>
- <programlisting><emphasis role="green">[Our SqlMap.config]</emphasis>
+ <programlisting><emphasis role="comment">[Our SqlMap.config]</emphasis>
<alias>
<typeAlias <emphasis role="blue">alias="GuidVarchar"</emphasis>
type="BigApp.Common.TypeHandlers.GuidVarcharTypeHandlerCallback,
@@ -1806,7 +1806,7 @@
</typeHandlers>
-<emphasis role="green">[One of our SqlMap.xml files]</emphasis>
+<emphasis role="comment">[One of our SqlMap.xml files]</emphasis>
<parameterMaps>
<parameterMap id="boc-params">
<parameter property="Code" dbType="Varchar2" size="10"/>
@@ -2254,12 +2254,12 @@
</resultMaps>
<statements>
- <emphasis role="green"><!-- This statement executes 1 time --></emphasis>
+ <emphasis role="comment"><!-- This statement executes 1 time --></emphasis>
<select id="selectProducts" parameterClass="int" resultMap="select-product-result">
select * from PRODUCT
</select>
- <emphasis role="green"><!-- This statement executes N times (once for each product returned above) --></emphasis>
+ <emphasis role="comment"><!-- This statement executes N times (once for each product returned above) --></emphasis>
<select id="selectCategory" parameterClass="int" resultMap="select-category-result">
<emphasis role="blue">select * from CATEGORY where CAT_ID = #value#</emphasis>
</select>
@@ -2415,12 +2415,12 @@
<statements>
- <emphasis role="green"><!-- This statement executes 1 time --></emphasis>
+ <emphasis role="comment"><!-- This statement executes 1 time --></emphasis>
<statement id="selectCategory" parameterClass="int" resultMap="select-category-result">
select * from CATEGORY where CAT_ID = #value#
</statement>
- <emphasis role="green"><!-- This statement executes N times (once for each category returned above)
+ <emphasis role="comment"><!-- This statement executes N times (once for each category returned above)
and returns a list of Products (1:M) --></emphasis>
<statement id="selectProductsByCatId" parameterClass="int" resultMap="select-product-result">
<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