I have a CMR relationship with a 1 to many. From that CMR method i get a collection. That collection is not ordered. I need to get a ordered collection that is returned from that CMR Method. How to do this?? Is there any way to make that CMR method return sorted collection.
The EJBQL in EJB 2.0 does not provide a support for this. EJB 2.1 does support ORDER BY clause. You can either use the proprietary Sort provided by the conatainer(this makes it difficult to port) or sort the collection.