Hi, I have looked through the source a little bit and as best I can tell I 
can only use the method:

BasePeer.doUpdate(Criteria selectCriteria, Criteria updateValues)

to update a column to a specific value (say 5), I can't do something like 
col = col + 3. I have the following:

String enterMark = getField(ENTER_MARK);
selectCriteria.add(enterMark, reference.getEnterMark(),
                   Criteria.GREATER_THAN);
updateCriteria.add(enterMark,
                   (Object)(enterMark + " = " +
                            enterMark + direction + delta),
                   Criteria.CUSTOM);
doUpdate(selectCriteria, updateCriteria, connection);

And it dies trying to convert the update criteria to an integer. Looking 
at the code it looks like it does the update one record at a time and 
converts the elements of the update before doing the update.

Am I misunderstanding this? If I am not, I think that this restriction 
should be mentioned in the javadocs for that method.

Will Holcomb


--
To unsubscribe, e-mail:   <mailto:turbine-torque-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-user-help@;jakarta.apache.org>

Reply via email to