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: appending to collection properties
Date Wed, 22 Aug 2007 14:18:38 GMT
Have iBATIS populate 3 lists in 3 different properties, then create a
getter that merges them into one. Simpler is better. :-)

Larry


On 8/22/07, Ole Trenner <ole.trenner@gmx.de> wrote:
> Niels Beekman wrote:
> > Maybe
> > http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+r
> > euse+SQL-fragments helps...
>
> Thanks again for your help.
>
> Maybe I didn't describe my problem correctly.
>
> The three subselects do query three quite different tables, thus needing
> different resultMap definitions to get correctly mapped to objects.
>
> My parent object "Article" stores them in a typed List only being able
> to access them through their interface, but internally they actually
> need to be instances of their concrete classes.
>
> What I've currently done is add some "dummy" setters to my Article
> object that just appends to the actual children list and then specify
> these dummy properties for the subselects.
>
> However, somehow the described behaviour contradicts the documentation,
> and since I'd very much prefer the documented behaviour, I'd like to
> know why :)
>
> Cheers.
> Ole.
>
>

Mime
View raw message