You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-user@db.apache.org by Thomas Dudziak <to...@gmail.com> on 2008/05/02 06:29:11 UTC

Re: ddlutils easier update possible?

On Wed, Apr 30, 2008 at 1:14 PM, tyju tiui <jc...@yahoo.com> wrote:

>  I'm curious to know if there is an easier way to issue a platform.update()?
>  Currently I have to fetch all of the values into a DynaBean and then update the values in the DynaBean before issuing my update to ensure I don't lose any data.
>
>  I'd like to just to a database.createDynaBeanFor(), assign the correct primary key and whatever value I want to update to do my update.
>  The problem is when I try to do this any value I don't set in the DynaBean gets set to NULL in the database.
>  So I have to waste a call to the db to fill a DynaBean before I can update the record.
>
>  Is there a better way?

Sorry, not at the moment (though feel free to file an issue in JIRA).

Tom