> -----Urspr�ngliche Nachricht-----
> Von: Maurice Wijtten [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 23. Oktober 2003 12:43
> An: Apache Torque Users List
> Betreff: Re: Problems with Criteria and ORDER BY
>
>
> Why don't just use       criteria.addSelectColumn("count(" +
> PeerName.fieldconstant + ")");
> The field constants usually include the tablename. (usually you'll be
> able to find a column as
> a substitute for the * sign).
>
> Maurice Wijtten

The difficult part is the "order by" part. I want to order the result set
according to the "count(whatever)" column.

Regards

Michael Burschik


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

Reply via email to