How to sort by JSF label in sortable data

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).

+5
source share
2 answers

I believe that it is impossible to achieve what you are looking for.

, , . , , - .

. db . , , , . Java-, db- .

0
0

All Articles