Dang, that's it. Thanks. Works fine now.
Somehow I can't stick using the get… syntax into my head. I still don't like it.
> Am 18.07.2017 um 13:05 schrieb Andrus Adamchik :
>
> From the stack, some code somewhere passes 'getCustomerNameForSorting'
> instead of 'customerNameForSorting' to Cayenn
From the stack, some code somewhere passes 'getCustomerNameForSorting' instead
of 'customerNameForSorting' to Cayenne. Can it be a typo in the property name?
Andrus
> On Jul 18, 2017, at 1:26 PM, Musall, Maik wrote:
>
> Yep.
>
>> Am 17.07.2017 um 17:50 schrieb Lon Varscsak :
>>
>> Is your ke
Yep.
> Am 17.07.2017 um 17:50 schrieb Lon Varscsak :
>
> Is your key “customerNameForSorting”?
>
> On Mon, Jul 17, 2017 at 7:40 AM, Musall, Maik wrote:
>
>> Hi John,
>>
>>> Am 17.07.2017 um 16:08 schrieb John Huss :
>>>
>>> Expressions will work with non-modeled properties as long as the met
Is your key “customerNameForSorting”?
On Mon, Jul 17, 2017 at 7:40 AM, Musall, Maik wrote:
> Hi John,
>
> > Am 17.07.2017 um 16:08 schrieb John Huss :
> >
> > Expressions will work with non-modeled properties as long as the methods
> > look like getters - have the "get" prefix and no arguments.
Hi John,
> Am 17.07.2017 um 16:08 schrieb John Huss :
>
> Expressions will work with non-modeled properties as long as the methods
> look like getters - have the "get" prefix and no arguments.
Unfortunately not:
Caused by: java.lang.IllegalArgumentException: Property
'getCustomerNameForSorting
Expressions will work with non-modeled properties as long as the methods
look like getters - have the "get" prefix and no arguments.
But I would use this:
Collections.sort(list, (a,b) -> a.getSomeProp().compareTo(b.getSomeProp()));
On Mon, Jul 17, 2017 at 8:08 AM Musall, Maik wrote:
> Hi all
Hi all,
I have a UI with a list of objects and user-configurable filters and sorting
criteria. Most of the sorting criteria are plain db path expressions, so I can
just feed them into Ordering.orderedList(objects).
A couple of them however are path expressions with the last segment being not a