You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Scott Eade <se...@backstagetech.com.au> on 2003/01/15 13:55:48 UTC
Re: how to simply retrieve value of existing row (was AW: how to
use Peer.doUpdate(object))
On 15/01/2003 11:45 PM, "Marc Lustig" <ma...@marclustig.com> wrote:
> Also, if I do this:
> Projekt projekt = new Projekt();
> projekt.setPrimaryKey(new NumberKey(itemId));
> projekt.setNew(false);
>
> then projekt.getProjektParaDescId();
>
> is NOT returning the value that is in the corresponding row!
> How on earth is it possible to simply retrieve the value of an existing row?
> This is so much of a simple task!
It is not clear from your example what you are trying to achieve.
Should:
projekt.getProjektParaDescId();
Be retrieving a foreign key? How is it going to retrieve anything if you
haven't initialised the projekt object?
Should you perhaps be doing:
projekt.setParaDesc(paraDesc);
Or similar, prior to the highlighted line?
HTH,
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com