Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Programmatic ORDER BY API?

Why yes it is! Thanks, I could have sworn this discussion came up once
before and the consensus was there wasn't a way to do it. I stand
corrected.

./tch



On Tue, Oct 14, 2008 at 1:39 AM, Thomas Paradies
<thomas.paradies@xxxxxxxxx> wrote:
> Tim,
>
> what about this methods?
>
> ReadAllQuery.addAscendingOrdering(String name)
> ReadAllQuery.addDescendingOrdering(String name)
> ReadAllQuery.addOrdering(Expression orderingExpression)
>
> Is that what you're asking for, isn't it?
>
> Thomas
>
>
>
> ----- Original Message ----
> From: Tim Hollosy <hollosyt@xxxxxxxxx>
> To: EclipseLink User Discussions <eclipselink-users@xxxxxxxxxxx>
> Sent: Monday, October 13, 2008 6:57:40 PM
> Subject: [eclipselink-users] Programmatic ORDER BY API?
>
> Any plans on adding a programmatic way to set an Order By clause? My
> current method is reflecting on property name then constructing SQL,
> then adding the correct order by clause to the string *yuck*.
>
> Are there plans to add this to v2 or does someone have a better idea?
> I would like to get a Query or ReadAllQuery and have a standard way to
> add an ORDER BY clause via entity property name string.
>
> ../tch
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>
>
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>


Back to the top