Hello,
 
I want write this SQL Command with Torque
 
Update table
set col = ...,
     timeStamp = newTime
where id = ..
and timestamp  = oldTime
 
I tried to use the function ObjectPeer.doUpdate(Criteria, connection) with
this criteria but doesnt work.
 
    // Set
    criteria.add(ID, obj.getId());
    criteria.add(AU_LAST_UPDATE_DATE,updateDate);
    // Clause SQL
    criteria.add(AU_LAST_UPDATE_DATE, (Object)req , Criteria.CUSTOM); 

Thanks.
 
 

Reply via email to