You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by T E Schmitz <ma...@numerixtechnology.de> on 2004/10/01 12:24:42 UTC
Criteria - add a negated condition
Hello,
Unless I am missing something, I think the following SQL can't be build
with Criteria - correct me if I'm wrong:
WHERE (NOT(<condition>))
My reasoning for this:
I have just cobbled together a somewhat more complex <condition> using
Criterions. And depending on a flag I either need to add <condition> or
NOT <condition> to my Criteria.
Of course, I know that and how I can create a second <not condition> to
avoid the NOT. But it would be a convenient feature for Criteria to have
methods like "addNot" and "orNot". Would this be a major development effort?
Would it be worth adding to Scarab as a feature request? (I'm sure your
to-do list is long enough as it is :-( )
--
Regards/Gruß,
Tarlika Elisabeth Schmitz, Scotland
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org