Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Expressions with dot notations ..

i would like to use dot notations if possible .. is that not possible at all?

On Thu, May 31, 2012 at 11:32 AM, Christopher Delahunt
<christopher.delahunt@xxxxxxxxxx> wrote:
> use
> addOrdering(query.getExpressionBuilder().get("contact").get("name").ascending());
>
> Best Regard,
> Chris
>
>
> On 31/05/2012 12:27 PM, vaidya nathan wrote:
>>
>> Hi,
>>
>> Does eclipselink provide a have an expression with dot notations. For
>> eg. if we have an Employer having an embedded object called Contact
>> and it has a property called name and if we want to sort on it I would
>> like to specify something like
>>
>> ReadAllQuery query;
>> ..
>> ..
>> ..
>> query.addAscendingOrdering(orderByColumn);
>> and for the orderByColumn i would like to specify e.contact.name . It
>> says property not found whenever i try that with/without alias and
>> only way in which i am able to do this is to
>> expr = eb.postfixSQL("name asc") which just goes directly to the sql
>> which i really would like to avoid..
>>
>> Cheers
>> Vaidya
>> _______________________________________________
>> 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