You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Adam Hardy <ad...@cyberspaceroad.com> on 2009/01/23 16:34:53 UTC

orderBy

Is there any chance that I'll be able to do this in the future (like JPA 2):

       <one-to-many name="weightings" mapped-by="collatedRun">
         <order-by>testAnalysis.marketSystem.systemRun.market.symbol</order-by>
       </one-to-many>


instead of writing a Comparator?


Re: orderBy

Posted by Adam Hardy <ad...@cyberspaceroad.com>.
> Is there any chance that I'll be able to do this in the future (like JPA 2):
> 
>       <one-to-many name="weightings" mapped-by="collatedRun">
>         <order-by>testAnalysis.marketSystem.systemRun.market.symbol</order-by>
>       </one-to-many>
> 
> 
> instead of writing a Comparator?
> 
> 
Pinaki Poddar on 29/01/09 05:16, wrote:
> Hi,
>   Check @OrderBy annotation in OpenJPA docs for something similiar.

That would be just the standard field ordering you mean?

Just checked the docs you referred to and don't see anything new.

I would like to order by the field of a field of a field - since it's no big 
deal to put the order by clause for it into the SQL, I thought it would be 
reasonable to hope for.

Or are you saying I only need to quote the table column?



Re: orderBy

Posted by Pinaki Poddar <pp...@apache.org>.
Hi,
  Check @OrderBy annotation in OpenJPA docs for something similiar.
 

-- 
View this message in context: http://n2.nabble.com/orderBy-tp2203853p2237172.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.