db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: AW: AW: Problems to set up a subquery
Date Fri, 20 Oct 2006 12:02:33 GMT
Pfiester, Jan wrote:
> Thx for that one,
> I've try your latest hint too, but i didn't know that you can check 
> zero references like you did!
> 
>> criteria.add(AdressenreferenzPeer.KUNDENADRESS_ID, ??0??,
>> 	Criteria.ISNULL);
> 
> In your criteria what is the second param  in the signature doing?
> What is the 0 indicating?

You can as well use
	criteria.add(AdressenreferenzPeer.KUNDENADRESS_ID, NULL);

This is mapped internally but I consider the explicit ISNULL comparison
being easier to read. That's why the dummy parameter.

Bye, Thomas.


---------------------------------------------------------------------
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