The original poster said he had them in alpha order, but moved them to
inheritance order to fix the problem...

They are loaded in the order you specify them in your sqlmap.config file.
 Anything that is being extended needs to be defined before what is
extending it.  If you are using namespaces, be sure to include that in your
extends as well.

On Tue, Mar 17, 2009 at 11:24 AM, sebastian_r
<[email protected]>wrote:

>
> Hi!
>
> I am having the same problem as described in this post! Recently I renamed
> some classes and mapping files while refactoring some code and afterwards I
> got the error:
>
> [...]
> - The error occurred while loading SqlMap.
> ...
> - Check the 'xxx' ---> IBatisNet.Common.Exceptions.ConfigurationException:
> In mapping file 'xxx' the resultMap 'xxx' can not resolve extends attribute
> 'xxx'
> [...]
>
> So is it a fact, that the mapping files are loaded in alphabetical
> order?!?!?!? I would be suprised if that is true!
>
> I don't want to believe that I will be forced as to what to name my mapping
> files in order for them to work!
>
> So how did you solve the inheritance problem when extending resultmaps?
> Just
> name the files ABasicMap, BFirstExtendingMap,
> CAnotherMappingFileUsingTheSecondFile? That's not really an elegant naming
> policy!
>
> Thanks for your help!
>
> Yours,
>
> Sebastian
> --
> View this message in context:
> http://www.nabble.com/inheritance-issue-tp12347249p22562984.html
> Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
>
>

Reply via email to