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">
]>
<sqlMap>
&theResultMaps;
<!-- common queries -->
</sqlMap>
I use that to split up ANT build files though haven't tried it with
iBatis.
--
Graeme -