Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One possible solution to resolve the issue is to use a join fetch query instead of a nested object query. This will enable the ORDER BY clause to function correctly. Alternatively, you can also use a native SQL query or a Criteria query to sort the results properly. It is recommended to review the entity relationships and ensure that they are properly mapped to avoid any issues with nested objects in queries.