Dec 4th, 2007, 02:11 PM
Sorting records in MappingSqlQuery
I have a MappingSqlQuery that reads a data set sorted with an ORDER BY statement in SQL. Yet in the returned linked list, I see that the last element is not the last record that would be returned by the SQL. How do I ensure that the ordering is correct?
Dec 4th, 2007, 02:20 PM
This should not be the case. Can you provide the SQL and how you know the final element does not correspond to the last row if issuing the SQL directly to the database?
Dec 4th, 2007, 02:27 PM
Never mind, the problem has been resolved. Thanks for the help.
Last edited by imchi; Dec 4th, 2007 at 03:23 PM.
Dec 9th, 2007, 01:27 AM
It's always nice to give the next one an idea what the issue was and how it was resolved ...
Dec 9th, 2007, 09:07 AM
It was an error in my SQL statement. Not related to the Spring framework.
Originally Posted by Jörg Heinicke