ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brice Ruth <bdr...@gmail.com>
Subject Re: global resultMaps ??
Date Tue, 25 Jan 2005 22:20:25 GMT
You should be able to reference result-maps (really, anything you've
defined, I think) in any SqlMaps that come *after* the map you've
defined it in. By *after* I mean the order in which you defined you
SqlMap files in your sql-map-config file.

So, if you wanted global maps, just create a separate file and make
that the first in your sql-map-config.

That should work!


On Tue, 25 Jan 2005 16:03:48 -0600, Barnett, Brian W.
<bbarnett@scholarinc.com> wrote:
> Is there a way to create a resultMap that can be referenced in separate sql
> map.xml files, or do I have to duplicate the resultMap in each file I want
> to use it in?
> 
> What about cacheModels?
> 
> Thanks,
> Brian Barnett
>

Mime
View raw message