Allow all attributes in SqlMap.config file to be aware of ${xyz} properties
---------------------------------------------------------------------------
Key: IBATISNET-58
URL: http://issues.apache.org/jira/browse/IBATISNET-58
Project: iBatis for .NET
Type: Improvement
Versions: DataMapper 1.1
Environment: [assembly: AssemblyVersion("1.1.458")]
Reporter: Ron Grabowski
Assigned to: Gilles Bayon
Priority: Minor
As of 5/5/2005, not all attributes in SqlMap.config are aware of ${xyz} style
global properties.
IBatisNet.DataMapper.Configuration.Initialize() should be checked to make sure
ParsePropertyTokens is called on everything(?). For example, when a TypeAlias
is deserialized its settable properties should be run through
ParsePropertyTokens:
typeAlias = (TypeAlias) serializer.Deserialize(new XmlNodeReader(xmlNode));
typeAlias.Class = Resources.ParsePropertyTokens(typeAlias.Class,
_configScope.Properties);
typeAlias.ClassName = Resources.ParsePropertyTokens(typeAlias.ClassName,
_configScope.Properties);
typeAlias.Name = Resources.ParsePropertyTokens(typeAlias.Name,
_configScope.Properties);
before it is initialized:
typeAlias.Initialize();
IBatisNet.DataMapper.Configuration.ConfigureSqlMap() should also be updated to
allow global properties to be substituted.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira