cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lendholt" <jlendh...@hotmail.com>
Subject Distinct
Date Thu, 02 Aug 2007 15:17:10 GMT
Hey all, it's me again.

i tried to set up a statement like this:

SelectQuery q_catering = new SelectQuery(ServiceKundeLocation.class, 
ExpressionFactory.matchExp(ServiceKundeLocation.LID_PROPERTY, 
buchung.getToEvent().getLid()));
q_catering.setDistinct(true);

List caterings = Application.getApp().getContext().performQuery(q_catering);

Instead of getting a DISTINCT operator in the executed sql it is msssing.

Is there a special trick to activate the distinct clause? Or is there a 
memory-based distinction?

Thanks in advance,

Jan

_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit 
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu! 
http://desktop.msn.de/ Jetzt gratis downloaden!


Mime
View raw message