I show a label (for a specific language) for the values in the column. The column is sorted, and the JSF label is different from the database value. I use fonts related to pagination.
How can I sort by label, not database value? Is there any translation, so my JPA criteria are aware of different values?
Sorting in memory is not an option, since the data set can be huge, and I want to display only a subset (page size is, for example, 10 elements per page).
source
share