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 Lionel PASQUIER <lp...@omnikles.com> on 2004/03/31 17:06:56 UTC

Re: R: doDelete(Object) doesn't work ?

I got the same problem: the doDelete(obj) might generate a screwed up 
SQL request because of a binary field.

Isn't it a bug to take care of?

Lionel

Giulio Vezzelli wrote:

> I just found the solution.
> 
> xxxxPeer.doDelete(myBusinessObject.getPrimaryKey())
> 
> Works fine.
> 
> I think doDelete(obj) didn't work because it tried to build a where clause with the object fields, and one of the fields got screwed up because of special characters in it.
> 
> Giulio Vezzelli
> Infolog S.r.l.
> Via Alfieri, 28
> Modena - 41100
> Telefono : +39-059-822446
> Sito web : http://www.infolog.it
> E-mail : giulio.vezzelli@infolog.it
>  
>  
> 
> 
>>-----Messaggio originale-----
>>Da: Giulio Vezzelli 
>>Inviato: mercoledì 3 dicembre 2003 10.59
>>A: torque-user@db.apache.org
>>Oggetto: doDelete(Object) doesn't work ?
>>
>>Hi,
>> 
>>    I tried to use xxxxPeer.doDelete(myBusinessObject), but 
>>it doesn't seem to work.
>>I see a doDelete debug output in Tomcat's console, which 
>>specifies a where clause with all that objects' fields, but 
>>the object isn't deleted.
>> 
>>Doesn't it work ?
>> 
>>which doDelete does effectively work ?!?
>> 
>>
>>Thanks!!
>> 
>>Giulio Vezzelli
>>Infolog S.r.l.
>>Via Alfieri, 28
>>Modena - 41100
>>Telefono : +39-059-822446
>>Sito web : http://www.infolog.it <http://www.infolog.it/> 
>>E-mail : giulio.vezzelli@infolog.it
>> 
>> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org