Order By with Alias
Ryan Bales <[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.torque.user |
|---|---|
| Message-ID | <[email protected]> |
Hello
I have the following:
...
criteria.addAsColumn("relevance", matchClause);
and I would like to order by "relevance" --which obviously is
undefined in my Torque classes.
so I tried:
criteria.addDescendingOrderByColumn("relevance");
but get the following error:
"removeSQLFunction() : Column name relevance DESC does not contain a .
or a *"
Does anyone know of a way around this? I read some mention that the
problem was resolved in RC3, but I am still getting the error. Any
help would be great.