cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musall, Maik" <m...@selbstdenker.ag>
Subject Ordering using non-property values
Date Mon, 17 Jul 2017 13:08:37 GMT
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 Property,
but a method name that is supposed to be invoked, which would then return a String, after
which the list is to be ordered. This worked fine in the past using EOF and EOSortOrdering,
but Cayenne's ordering throws an ExpressionException on evaluate().

What is the usual way in Cayenne to deal with this?

Thanks
Maik


Mime
View raw message