report query in order by
Abid Hussain <[email protected]>
| Newsgroups | gmane.comp.jakarta.ojb.user |
|---|---|
| Message-ID | <[email protected]> |
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