> From: Jason van Zyl [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 10:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: doDelete without a primary key
>
>
> On 7/10/01 9:20 AM, "Howard Lin" <[EMAIL PROTECTED]> wrote:
>
> > If I call doDelete on a table without a primary key, I got
> the following
> > exception:
>
> Why don't you have a primary key? Are you using Torque to
> generate objects.
> All objects that are retrieved/saved by Torque should be indentified
> by an OID. I don't think setting up a system where your objects have
> no OID/primary key is a bad idea. How are you tracking them without
> a unique identifier. Or are you using something else as an identifier?
>
Good question. I'm working with an existing table (designed by others)
and luckily I'm only responsible for deleting records (not insert/update
etc.) I found deleteAll from BasePeer is what I want, even though I have
to override it so it will take a String as a value. Thanks,
Howard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]