On 10/9/07, Claus Hausberger <[EMAIL PROTECTED]> 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 ...