ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: API for runtime assembling of ibatis configuration elements
Date Wed, 19 May 2010 13:13:16 GMT
Version 3, yes.  Version 2, no.


On Wed, May 19, 2010 at 5:14 AM, alebu <aleboo@gmail.com> wrote:

> Hi, I have some ibatis API question:
> Is it possible to assemble configuration elements like resultMap's or
> queries in runtime using API only? Can these API generated elements
> reference to those that comes from XML configuration? It can be useful in
> some situations, like using custom query builder where conditions may be
> very dynamic (for example, users could provide them). Or set of columns may
> be provided too (together with resultMap) based on some dynamic
> configuration. In this way ibatis still can be useful because of cache or
> just by reusing some resultMap's when assembling your own more complex one.
> Or maybe the whole ibatis configuration may be described in Guice style, in
> java code (Lots of people like it because of type-safe refactoring). Main
> question here is: is it OK to use ibatis in this way too or it is not
> recomended?

View raw message