ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: statements and result maps in different files?
Date Fri, 28 Jul 2006 11:36:03 GMT
This is a known bug.

In your sqlmap config, be sure to include the file with the resultmaps
BEFORE the file with the mapped statements. Also, you may have some
namespace issues, too...kinda hard to tell without more details...

You may also want to look at the <sql/> and <include/> tags for
managing the queries.

Larry


On 7/28/06, Stefan Podkowinski <spodxx@gmail.com> wrote:
> Hello
>
> Can anyone give advise how to seperate object mappings from statements
> in ibatis? We would like to create a file containing a few complex
> reporting queries with the intention to use it as a common query
> definition base for several applications. The problem is we cannot us
> a common result mapping, because objects vary in each application.
>
> Unfortunally declaring two files, reports.xml and mappings.xml in the
> config files would not work. I'm getting a lot of errors like 'There
> is no result map named TestMap in this SqlMap.'. Is there any other
> way to do this?
>
> TIA,
> Stefan
>

Mime
View raw message