Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
None
-
None
-
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>