ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koka Kiknadze" <226...@gmail.com>
Subject Re: Unknown Column Name problem
Date Tue, 09 Oct 2007 07:54:39 GMT
On 10/9/07, Claus Hausberger <CHausberger@gmx.de> wrote:
>
>
> do I always have to specify all column names in the query that are also in
> the ResultMap ?
>

Yes.

So I guess you are reusing  the resultMap and in some queries some columns
may be absent (i.e. you do not care about corresponding java object
property). I such cases I usually use something like:

select actualcolumn1, actuslcolumn2, ... , someDefaultValue1 as fakeColumn1,
someDefaultValue2 as fakeColumn1 from ...

Mime
View raw message