I think it's possible.

Before update your object you need to get it from DB with a
getObjectByQuery() method call, than you can only update the fileds you
need.
See tutorial 1 : Updating Objects.

Christophe

----- Original Message ----- 
From: "Mykola Ostapchuk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 2:05 AM
Subject: Update only some fields in DB


> Hello,
>
> This question already was in this maillist, but nobody answered.
> It's actually so fundamental in use, that it must be somewhere in FAQ.
>
> So, here it is: How can I update not all, but only some fields in some
> table? I'm using PersistenceBroker.store method to persist an object - and
> if I don't populate all the object properties with values, I get null rows
> in DB in place of unspecified object properties...
> At least, please, answer if it's possible with OJB.
>
>
> Best regards,
> Mykola Ostapchuk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---
Ce message Envoi est certifié sans virus connu.
Protégé par l'antivirus AVG Deluxe.
Version: 6.0.492 / Base de données virus: 291 - Date: 24/06/2003


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to