Standardize syntax of property elements: key, name, setting, add, etc.
----------------------------------------------------------------------

         Key: IBATISNET-84
         URL: http://issues.apache.org/jira/browse/IBATISNET-84
     Project: iBatis for .NET
        Type: Improvement
  Components: DataAccess, DataMapper  
    Reporter: Ron Grabowski
    Priority: Trivial


There are currently 3 differrent naming conventions in place to specify a 
property:

1) dao.config

<daoSessionHandler id="SqlMap">
 <property name="resource" value="${path}/sqlMap.config"/>
</daoSessionHandler>

2) sqlMap.config

<properties>
 <property key="SELECT_KEY" value="SELECT @@IDENTITY" />
</properties>

3) properties.config

<?xml version="1.0" encoding="utf-8" ?> 
<settings>
 <add key="SELET_KEY" value="SELET @@IDENTITY" />
</settings>

It may be less confusing if everything were standardized using this notation:

 <property name="foo" value="bar" />

The above exanples using the improved syntax:

1) dao.config

<daoSessionHandler id="SqlMap">
 <property name="resource" value="${path}/sqlMap.config"/>
</daoSessionHandler>

2) sqlMap.config

<properties>
 <property name="SELECT_KEY" value="SELECT @@IDENTITY" />
</properties>

3) properties.config

<?xml version="1.0" encoding="utf-8" ?> 
<properties>
 <property name="SELECT_KEY" value="SELECT @@IDENTITY" />
</properties>

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

Reply via email to