Given the below JPQL statement, how do I modify it so that the kittens in the resulting list are ordered by their age property?
age
SELECT c FROM Cat c
Hej,
I don't think this is possible when applied using queries. But as far as I remember, you can use this to add default ordering to your collection in the mapping:
@OrderBy("myColumName asc")