As a ...
I need to be able to ...
Specify how comparisons and ordering are collated, such as by specifying a locale
Which enables me to ...
Handle more fine-grained ordering of strings.
Additional information
Using the Sort API, I can specify case insensitivity: https://jakarta.ee/specifications/data/1.1/apidocs/jakarta.data/jakarta/data/sort
But we've had users who expect to be able ot specify how the case sensitivity is collated, such as specifying the locale to use for ordering.
See quarkusio/quarkus#31254
This is coming from an original Mongo/Panache implementation which supports this, but we know Hibernate ORM also supports collation.
@yrodiere suggested that besides ordering, this might be useful as a query parameter too:
@Find
List<Book> books(@Collate("ucs_basic") String title);
Perhaps we should handle this use-case as well?
As a ...
I need to be able to ...
Specify how comparisons and ordering are collated, such as by specifying a locale
Which enables me to ...
Handle more fine-grained ordering of strings.
Additional information
Using the
SortAPI, I can specify case insensitivity: https://jakarta.ee/specifications/data/1.1/apidocs/jakarta.data/jakarta/data/sortBut we've had users who expect to be able ot specify how the case sensitivity is collated, such as specifying the locale to use for ordering.
See quarkusio/quarkus#31254
This is coming from an original Mongo/Panache implementation which supports this, but we know Hibernate ORM also supports collation.
@yrodiere suggested that besides ordering, this might be useful as a query parameter too:
Perhaps we should handle this use-case as well?