db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Burschik" <Bursc...@lotto-berlin.de>
Subject AW: Criteria question...
Date Wed, 21 Jan 2004 08:29:23 GMT
This problem seems to pop up every few months. Can't some maintainer patch
the distributed source to allow for something used this often? Especially
since the change is so small.

Regards

Michael Burschik

> -----Ursprungliche Nachricht-----
> Von: Andres Quijano - Rizonet [mailto:andres@rizo.net]
> Gesendet: Dienstag, 20. Januar 2004 18:25
> An: 'Apache Torque Users List'
> Betreff: RE: Criteria question...
>
>
> now that I recall, I had to patch BasePeer... I think it was (but not
> for sure, check old posts)
>
> line 1220
>
> for (int i = 0; i < orderBy.size(); i++) {
>   String orderByColumn = orderBy.get(i);
>   String alias = orderByColumn.substring(0,
> orderByColumn.lastIndexOf('
> '));
>
>   if (aliases.containsKey(alias)) {
>     orderByClause.add(orderByColumn);
>   }
>   else {
>     if (orderByColumn.indexOf('.') == -1){
>       throwMalformedColumnNameException("order by",orderByColumn);
>   }
>   ...
>
>
> e-mail me if you can't get it to work and I'll send you my
> source class.
>
> andres



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