db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Lustig" <m...@marclustig.com>
Subject how to use Peer.doUpdate(object)
Date Wed, 15 Jan 2003 11:12:14 GMT
Hi,

is there a bug in ObjectPeer.doUpdate(myobject) ?

What I'm doing is creating a new Object, setting the PK (of an existing row)
and the fields.
Now when running Peer.doUpdate(myobject) torque reports
867278 [Thread-4] DEBUG util.BasePeer  - BasePeer.doUpdate:
whereClause=PROJEKT_
ID IS NULL

Isn't torque supposed to build the WHERE clause automatically based on the
PK ?

If not, then the whole method Peer.doUpdate(myobject) is useless, isn't it?

Greetings
Marc


Mime
View raw message