You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org> on 2005/05/06 17:12:04 UTC

[jira] Created: (IBATISNET-58) Allow all attributes in SqlMap.config file to be aware of ${xyz} properties

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


[jira] Commented: (IBATISNET-58) Allow all attributes in SqlMap.config file to be aware of ${xyz} properties

Posted by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/IBATISNET-58?page=comments#action_12318914 ] 

Ron Grabowski commented on IBATISNET-58:
----------------------------------------

Revision 232503 may have fixed this issue.

> 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
>     Assignee: 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


[jira] Commented: (IBATISNET-58) Allow all attributes in SqlMap.config file to be aware of ${xyz} properties

Posted by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/IBATISNET-58?page=comments#action_12318915 ] 

Gilles Bayon commented on IBATISNET-58:
---------------------------------------

Yes, I will close it.

> 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
>     Assignee: Gilles Bayon
>     Priority: Minor
>      Fix For: DataMapper 1.3

>
> 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


[jira] Closed: (IBATISNET-58) Allow all attributes in SqlMap.config file to be aware of ${xyz} properties

Posted by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATISNET-58?page=all ]
     
Gilles Bayon closed IBATISNET-58:
---------------------------------

    Fix Version: DataMapper 1.3
     Resolution: Fixed

In Svn

> 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
>     Assignee: Gilles Bayon
>     Priority: Minor
>      Fix For: DataMapper 1.3

>
> 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