You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2005/05/22 11:18:32 UTC

svn commit: r171298 - /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs

Author: gbayon
Date: Sun May 22 02:18:31 2005
New Revision: 171298

URL: http://svn.apache.org/viewcvs?rev=171298&view=rev
Log:
- Fixed JIRA-68 Improved logging message fpr TypeHandler Configuration

Modified:
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj?rev=171298&r1=171297&r2=171298&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/IBatisNet.DataMapper.Test.csproj Sun May 22 02:18:31 2005
@@ -413,7 +413,7 @@
                 />
                 <File
                     RelPath = "Maps\MSSQL\SqlClient\Account.xml"
-                    BuildAction = "Content"
+                    BuildAction = "EmbeddedResource"
                 />
                 <File
                     RelPath = "Maps\MSSQL\SqlClient\Category.xml"

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt?rev=171298&r1=171297&r2=171298&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt Sun May 22 02:18:31 2005
@@ -13,6 +13,7 @@
 - Added nunit category 'NHibernate'
 - Fixed Oracle issues (JIRA-27, JIRA-54, JIRA-56, JIRA-57)
 - Fixed JIRA-69 Added support for global setting in ressource and url attribute
+- Fixed JIRA-68 Improved logging message fpr TypeHandler Configuration
 - Fixed JIRA-66 #value# moniker not recognized when called something else like #ProductId# 
 - Fixed JIRA-60 QueryForMap not calling session.CloseConnection() correctly 
 - Fixed JIRA-51 If a <statement> has a "cacheModel" attribute set and cacheModelsEnabled="false" in SqlMap.config, an DataMapperException is thrown 

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs?rev=171298&r1=171297&r2=171298&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs Sun May 22 02:18:31 2005
@@ -382,12 +382,12 @@
 					XmlSerializer serializer = new XmlSerializer(typeof(TypeHandler));
 
 					handler = (TypeHandler) serializer.Deserialize(new XmlNodeReader(xmlNode));
-					_configScope.ErrorContext.ObjectId = handler.ClassName;
+					_configScope.ErrorContext.ObjectId = handler.CallBackName;
 					_configScope.ErrorContext.MoreInfo = "initialize typeHandler";
 					handler.Initialize();
 
 
-					_configScope.ErrorContext.MoreInfo = "Check the callback attribute '" + handler.ClassName + "' (must be a classname).";
+					_configScope.ErrorContext.MoreInfo = "Check the callback attribute '" + handler.CallBackName + "' (must be a classname).";
 					ITypeHandler typeHandler = null;
 					Type type = _configScope.SqlMapper.GetType(handler.CallBackName);
 					object impl = Activator.CreateInstance( type );
@@ -416,7 +416,12 @@
 				} 
 				catch (Exception e) 
 				{
-					throw new ConfigurationException("Error registering occurred.  Cause: " + e.Message, e);
+					throw new ConfigurationException(
+						String.Format("Error registering TypeHandler class \"{0}\" for handling .Net type \"{1}\" and dbType \"{2}\". Cause: {3}", 
+						xmlNode.Attributes["callback"].Value,
+						xmlNode.Attributes["type"].Value,
+						xmlNode.Attributes["dbType"].Value,
+						e.Message), e);
 				}
 			}
 			_configScope.ErrorContext.Reset();