You can modify the ClassDescriptor of your peristent class to only contain FieldDescriptors of the the PK and modified field.
OJB will then only work with those two columns!
cheers, Thomas
Stephen Ting wrote:
Can i update a single field of a persisted object (PB api) ? Meaning i
only knows the primary key of the object and the field value i want to
change (I was able to retrieve the object and changed the required field
with new value and persist back to db, but this required a SELECT AND
UPDATE statement. Can i just do an UPDATE statement and just update the
required field, this i believe should performs better) I tried this, and what happens is it does update the record in the
database, but all the field beside the one with value i set previously
is blank(db default value). Thanks and regards,
Stephen Ting
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
