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/03/12 22:25:07 UTC
svn commit: r157284 - in incubator/ibatis/trunk/cs/tutorial:
Model/Model.csproj Model/PersonTest.cs Tests/PersonTest.cs
Tests/Resources/PersonHelper.xml Tests/Tests.csproj
WebView/Resources/PersonHelper.xml
Author: roberto
Date: Sat Mar 12 13:25:05 2005
New Revision: 157284
URL: http://svn.apache.org/viewcvs?view=rev&rev=157284
Log:
~ Updated C# DataMapper tutorial solution Model and Tests project files to use relative path reference for DataMapper assembly with new ASF directory structure
~ Updated C# DataMapper tutorial NUnit test class names and SqlMap files, (to match tutorial documentation)
Modified:
incubator/ibatis/trunk/cs/tutorial/Model/Model.csproj
incubator/ibatis/trunk/cs/tutorial/Model/PersonTest.cs
incubator/ibatis/trunk/cs/tutorial/Tests/PersonTest.cs
incubator/ibatis/trunk/cs/tutorial/Tests/Resources/PersonHelper.xml
incubator/ibatis/trunk/cs/tutorial/Tests/Tests.csproj
incubator/ibatis/trunk/cs/tutorial/WebView/Resources/PersonHelper.xml
Modified: incubator/ibatis/trunk/cs/tutorial/Model/Model.csproj
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/tutorial/Model/Model.csproj?view=diff&r1=157283&r2=157284
==============================================================================
--- incubator/ibatis/trunk/cs/tutorial/Model/Model.csproj (original)
+++ incubator/ibatis/trunk/cs/tutorial/Model/Model.csproj Sat Mar 12 13:25:05 2005
@@ -88,7 +88,7 @@
<Reference
Name = "IBatisNet.DataMapper"
AssemblyName = "IBatisNet.DataMapper"
- HintPath = "..\..\Source1\IBatisNet.DataMapper\bin\Debug\IBatisNet.DataMapper.dll"
+ HintPath = "..\..\mapper\IBatisNet.DataMapper\bin\Debug\IBatisNet.DataMapper.dll"
/>
</References>
</Build>
Modified: incubator/ibatis/trunk/cs/tutorial/Model/PersonTest.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/tutorial/Model/PersonTest.cs?view=diff&r1=157283&r2=157284
==============================================================================
--- incubator/ibatis/trunk/cs/tutorial/Model/PersonTest.cs (original)
+++ incubator/ibatis/trunk/cs/tutorial/Model/PersonTest.cs Sat Mar 12 13:25:05 2005
@@ -7,7 +7,7 @@
/// Tests to exercise Person and PersonHelper methods.
/// </summary>
[TestFixture]
- public class PersonListTest
+ public class PersonTest
{
[Test]
public void PersonList ()
Modified: incubator/ibatis/trunk/cs/tutorial/Tests/PersonTest.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/tutorial/Tests/PersonTest.cs?view=diff&r1=157283&r2=157284
==============================================================================
--- incubator/ibatis/trunk/cs/tutorial/Tests/PersonTest.cs (original)
+++ incubator/ibatis/trunk/cs/tutorial/Tests/PersonTest.cs Sat Mar 12 13:25:05 2005
@@ -4,7 +4,7 @@
namespace iBatisTutorial.Model
{
[TestFixture]
- public class PersonListTest
+ public class PersonTest
{
[Test]
public void PersonList ()
Modified: incubator/ibatis/trunk/cs/tutorial/Tests/Resources/PersonHelper.xml
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/tutorial/Tests/Resources/PersonHelper.xml?view=diff&r1=157283&r2=157284
==============================================================================
--- incubator/ibatis/trunk/cs/tutorial/Tests/Resources/PersonHelper.xml (original)
+++ incubator/ibatis/trunk/cs/tutorial/Tests/Resources/PersonHelper.xml Sat Mar 12 13:25:05 2005
@@ -8,7 +8,7 @@
<!-- XML "behind" document for the People service class. -->
<alias>
- <typeAlias alias="Person" assembly="iBatisTutorial.Model.dll" type="iBatisTutorial.Model.Person" />
+ <typeAlias alias="Person" type="iBatisTutorial.Model.Person, iBatisTutorial.Model" />
</alias>
<resultMaps>
@@ -40,7 +40,7 @@
</dynamic>
</select>
- <insert id="Insert" parameterClass="Person" resultClass="int">
+ <insert id="Insert" parameterClass="Person">
insert into PERSON
(PER_ID, PER_FIRST_NAME, PER_LAST_NAME,
PER_BIRTH_DATE, PER_WEIGHT_KG, PER_HEIGHT_M)
@@ -49,7 +49,7 @@
#BirthDate#, #WeightInKilograms#, #HeightInMeters#)
</insert>
- <update id="Update" parameterClass="Person" resultClass="int">
+ <update id="Update" parameterClass="Person">
update PERSON set
PER_FIRST_NAME = #FirstName#,
PER_LAST_NAME = #LastName#,
@@ -59,7 +59,7 @@
where PER_ID = #Id#
</update>
- <delete id="Delete" parameterClass="int" resultClass="int">
+ <delete id="Delete" parameterClass="int">
delete from PERSON
where PER_ID = #value#
</delete>
Modified: incubator/ibatis/trunk/cs/tutorial/Tests/Tests.csproj
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/tutorial/Tests/Tests.csproj?view=diff&r1=157283&r2=157284
==============================================================================
--- incubator/ibatis/trunk/cs/tutorial/Tests/Tests.csproj (original)
+++ incubator/ibatis/trunk/cs/tutorial/Tests/Tests.csproj Sat Mar 12 13:25:05 2005
@@ -78,7 +78,7 @@
<Reference
Name = "IBatisNet.DataMapper"
AssemblyName = "IBatisNet.DataMapper"
- HintPath = "..\..\Source1\IBatisNet.DataMapper\bin\Debug\IBatisNet.DataMapper.dll"
+ HintPath = "..\..\mapper\IBatisNet.DataMapper\bin\Debug\IBatisNet.DataMapper.dll"
/>
</References>
</Build>
Modified: incubator/ibatis/trunk/cs/tutorial/WebView/Resources/PersonHelper.xml
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/tutorial/WebView/Resources/PersonHelper.xml?view=diff&r1=157283&r2=157284
==============================================================================
--- incubator/ibatis/trunk/cs/tutorial/WebView/Resources/PersonHelper.xml (original)
+++ incubator/ibatis/trunk/cs/tutorial/WebView/Resources/PersonHelper.xml Sat Mar 12 13:25:05 2005
@@ -40,7 +40,7 @@
</dynamic>
</select>
- <insert id="Insert" parameterClass="Person" resultClass="int">
+ <insert id="Insert" parameterClass="Person">
insert into PERSON
(PER_ID, PER_FIRST_NAME, PER_LAST_NAME,
PER_BIRTH_DATE, PER_WEIGHT_KG, PER_HEIGHT_M)
@@ -49,7 +49,7 @@
#BirthDate#, #WeightInKilograms#, #HeightInMeters#)
</insert>
- <update id="Update" parameterClass="Person" resultClass="int">
+ <update id="Update" parameterClass="Person">
update PERSON set
PER_FIRST_NAME = #FirstName#,
PER_LAST_NAME = #LastName#,
@@ -59,7 +59,7 @@
where PER_ID = #Id#
</update>
- <delete id="Delete" parameterClass="int" resultClass="int">
+ <delete id="Delete" parameterClass="int">
delete from PERSON
where PER_ID = #value#
</delete>