Yes, it can be done.
However, you may have to implement the Comparable domain Comparable ; I do not think you can do this with a comparator.
Edit: Looks like I did not understand this question. If you are talking about the result of a special request, the above will not help you. Perhaps it will be possible to make it work by binding the object with the TreeMap property to the database view if the request is corrected.
And, of course, you can always create a map yourself with a very small amount of work and processing.
Michael borgwardt
source share