updateByPrimaryKeySelective and updateByExampleSelective allow you to
select the columns - only non-null columns in the parameter objects
will be updated.

Jeff Butler


On Thu, Oct 22, 2009 at 2:31 PM, Vinaya Tirikkovalluru
<[email protected]> wrote:
> They do, they don't take the specified columns though.
> I need to update all the columns in the table.
> I don't want to do that. I would like to specify which columns I want to
> update, not all
>
> Thanks
> Vinaya
>
>
>
>
> -----Original Message-----
> From: Jeff Butler [mailto:[email protected]]
> Sent: Thursday, October 22, 2009 3:29 PM
> To: [email protected]
> Subject: Re: Update Table with selected columns
>
> Ibator generates updateByPrimaryKey and updateByExample methods that
> serve this purpose.
>
> Jeff Butler
>
>
> On Thu, Oct 22, 2009 at 2:26 PM, Vinaya Tirikkovalluru
> <[email protected]> wrote:
>> Hi,
>>
>>
>>
>> I am using Ibator to generate the Ibatis objects.
>>
>> I have a requirement where I should be able to create the SQL as
>>
>>
>>
>> Update table set a=1, b=2, c=3, .... Where clause/primary key
>>
>>
>>
>> Any one did get this to work with Ibator? I would like to modify the
> Ibator
>> code if necessary
>>
>>
>>
>> Thanks
>>
>> Vinaya
>>
>>
>>
>> ________________________________
>> This electronic message is intended only for the use of the
> individual(s) or
>> entity(ies) named above and may contain information which is
> privileged
>> and/or confidential. If you are not the intended recipient, be aware
> that
>> any disclosure, copying, distribution, dissemination or use of the
> contents
>> of this message is prohibited. If you received this message in error,
> please
>> notify the sender immediately.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
> This electronic message is intended only for the use of the individual(s) or 
> entity(ies) named above and may contain information which is privileged 
> and/or confidential.  If you are not the intended recipient, be aware that 
> any disclosure, copying, distribution, dissemination or use of the contents 
> of this message is prohibited.  If you received this message in error, please 
> notify the sender immediately.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to