Re: report query in order by
Abid Hussain <[email protected]>
| Newsgroups | gmane.comp.jakarta.ojb.user |
|---|---|
| Message-ID | <[email protected]> |
Hi again, thank you Vasily for the workaround. But as you said in you mailinglist-posting, it would be more desireable to use code like QueryByCriteria.addOrderBy(ReportQuery)...:-( Maybe there will be a proper way to solve the problem sometime...:-) Regards, Abid Vasily Ivanov schrieb: > Hi Abid, > > It was me who posted that question. I also posted an improvement > request into Jira: > https://issues.apache.org/jira/browse/OJB-104 > > There is a workaround in there. Have a look. > > Regards, > Vasily > > On 10/23/06, Abid Hussain <[email protected]> wrote: >> Hi everybody, >> >> the following problem was already posted in the mailinglist in March 06. >> >> <-- >> I've got two classes: >> class Parent: >> int id >> String data >> Collection children >> class Child: >> int id >> String data >> int parentId >> Parent parent >> >> I need to get collection of parents sorted by the number of children, >> but I didn't find any way to put ReportQuery to "ORDER BY" statement. >> --> >> >> The problem is that there is no method in QueryByCriteria like >> QueryByCriteria.addOrderBy(ReportQuery), so there wasn't found a proper >> solution in the mailinglist when the problem was posted. >> >> I've got the same problem and am asking if there is a solution maybe in >> ojb 1.0.5? >> >> Regards, >> >> Abid Hussain >> >> -- >> >> Abid Hussain >> Mail: [email protected] >> Web: http://www.abid76.de >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Abid Hussain Mail: [email protected] Web: http://www.abid76.de