Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-84

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

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • DataAccess, DataMapper
    • None

    Description

      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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            ron liu ron

            Dates

              Created:
              Updated:

              Slack

                Issue deployment