db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From T E Schmitz <mail...@numerixtechnology.de>
Subject Re: [Criteria] where colA=colB
Date Thu, 24 Feb 2005 23:56:03 GMT
Andras Balogh wrote:

> I think you can use it like this:
> criteria.add(TransaktionPeer.METHOD, (Object) "T.METHOD = 
> TRANSAKTION.METHOD",Criteria.CUSTOM);

Thank you, this works!

Another question: I have built part of my WHERE Criteria elsewhere in 
the program and am just passing on the Criteria object. When I "and" 
further Criteria to the WHERE clause they get prepended rather than 
appended.
I normally use Criterions where the order within the WHERE clause is 
crucial. But there doesn't seem to be a way to extract the WHERE 
Criterion to add to it. Or is there?

  --

Regards/Gruß,

Tarlika Elisabeth Schmitz

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


Mime
View raw message