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: DAO update with partial model objects
Date Fri, 23 Mar 2007 20:53:52 GMT
Since Abator 1.0 there has been an "updateByPrimaryKeySelective" method.
That one will only update the non-null values.

Jeff Butler



On 3/23/07, Chris Lamey <clamey@localmatters.com> wrote:
>
> Take a look at your "abatorgenerated_updateByPrimaryKey" update elements
> in your SQL Maps.  Mine will update all values by primary key every
> time.
>
> On Fri, 2007-03-23 at 14:30 -0500, Mark Volkmann wrote:
> > I'm using Spring DAOs generated by Abator. Is it the case that I can
> > pass a partially populated model object to a Spring DAO update method
> > and it will only update the corresponding columns that have non-null
> > values in my model object, leaving the other columns set to their
> > current value?
>

Mime
View raw message