You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Paul Carr <Pa...@express-gifts.co.uk> on 2006/04/05 11:08:27 UTC

CRD or CR-U-D

Hi Guys,
            I'm using Abator to generate my dao layer..... just curious
why there are no update methods generated ? If you can do a
selectByExample passing a single Example object, could you not do an
updateByExample passing two Example objects, one for the where clause,
and only updating the fields that are different between the two ?
 
 

Re: CRD or CR-U-D

Posted by Jeff Butler <je...@gmail.com>.
Abator will generate an updateByPrimaryKey statement if the table has a
primary key.  There is no updateByExample support currently.

Jeff Butler


On 4/5/06, Paul Carr <Pa...@express-gifts.co.uk> wrote:
>
>  Hi Guys,
>
>             I'm using Abator to generate my dao layer….. just curious why
> there are no update methods generated ? If you can do a selectByExamplepassing a single Example object, could you not do an
> updateByExample passing two Example objects, one for the where clause,  and
> only updating the fields that are different between the two ?
>
>
>
>
>