If I do the usual

  Criteria crit = new Criteria();
  Criteria.Criterion c1 = crit.getNewCriterion(ABC.A, 10,
Criteria.GREATER_THAN);
  Criteria.Criterion c2 = crit.getNewCriterion(ABC.A, 20,
Criteria.LESS_THAN);
  crit.add(c1.and(c2));
  AbcPeer.doDelete(crit);

it is not doing the AND, and it is just issuing a delete like this:

  delete from ABC where A > 10;

which is, of course, deleting a LOT more than I expected. Anybody
has seen this symptom? Any clues? Funny thing is, doSelect() with
the same Criteria works ok; shouldn't doSelect() and doDelete()
(and probably others) use the same method to transform the Criteria
into the WHERE clause?


-- 
Gonzalo A. Diethelm
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to