ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graeme J Sweeney <ibatis.u...@gjsweeney.com>
Subject Re: statements and result maps in different files?
Date Fri, 28 Jul 2006 10:44:32 GMT
On Fri, 28 Jul 2006, Stefan Podkowinski wrote:

> 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.

Have you tried XML entities? Something like

<!DOCTYPE sqlMap [
   <!ENTITY theResultMaps SYSTEM "result_maps.xml">


   <!-- common queries -->


I use that to split up ANT build files though haven't tried it with 

Graeme -

View raw message