Announcement Announcement Module
Collapse
No announcement yet.
Hibernate query to return sorted collection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate query to return sorted collection

    Let's say I have a Person object with an association to a collection of Credit Cards. Is there a way to write a query so that for each Person object returned...the collection of Credit Cards are sorted?

  • #2
    http://www.hibernate.org/hib_docs/v3...ections-sorted

    Comment


    • #3
      You can also use special keywords both in HQL and Criteria so that your query will return a sorted collection. Check the hibernate referenece documentation - it covers this topic.

      Comment

      Working...
      X