This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.