You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Abid Hussain <ab...@abid76.de> on 2006/10/24 09:35:05 UTC
Re: report query in order by
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 <ab...@abid76.de> 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: abid.hussain@abid76.de
>> Web: http://www.abid76.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
--
Abid Hussain
Mail: abid.hussain@abid76.de
Web: http://www.abid76.de
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org