Unable to specify cacheModel in other sql map file
--------------------------------------------------
Key: IBATISNET-79
URL: http://issues.apache.org/jira/browse/IBATISNET-79
Project: iBatis for .NET
Type: Bug
Reporter: Ron Grabowski
Assigned to: Gilles Bayon
Priority: Minor
Using this sample sql map:
<sqlMap namespace="Category">
<!-- snip -- >
<cacheModel id="CategoryCache" implementation="MEMORY">
<flushInterval hours="12" />
<flushOnExecute statement="Insert" />
<flushOnExecute statement="Update" />
<flushOnExecute statement="Product.GetMany" />
</cacheModel>
<!-- snip -- >
</sqlMap>
The following exception is thrown:
[DataMapperException: This SQL map does not contain a MappedStatement named
Category.Product.GetMany]
Line 1169 of DomSqlMapBuilder.cs has this:
statementName = _configScope.SqlMapNamespace + DOT + statementName;
It should be:
statementName = ApplyNamespace( statementName );
The sql Map files are loaded in the following order:
<sqlMap embedded="Resources.SqlMaps.OleDb.Product.xml, Company.Project" />
<sqlMap embedded="Resources.SqlMaps.OleDb.Category.xml, Company.Project" />
Thanks to Chad Humphries for finding this.
--
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