ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Cleanest/Easiest way to do a 1:1 or a 1:M select using Abator
Date Mon, 23 Apr 2007 15:03:28 GMT
You will have to hand code any join queries - Abator does not deal with
table relationships.  You should be able to reuse the resultMaps produced by
Abator.  If you get into a situation you need columns renamed, you can give
the table an alias in the abator config and abator will generate aliased and
renamed columns for the result maps.

Jeff Butler

On 4/22/07, Jared Blitzstein <mailing-list@blitzstein.net> wrote:
> Is there a way to do a 1:1 or a 1:M select using the generated code
> from Abator out of the box (or with some minor tweaks)? I've looked
> around for a bit and the only thing I could come up with was to write
> that functionality by hand to have iBATIS return a fully loaded
> "Patient" object, or do a bunch of calls using the abator generated
> code and piece it together in my service layer. My query in question
> would involve a "Patient" object that would be a 1:1 with a "Person"
> object which would have a 1:M with "Address". Anyone have a clean
> solution for this? Thanks.

View raw message