[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3431) The "order-by" setting of a collection is not observed in repeated fetches within the same session

Andra Nedelcovici (JIRA) noreply at atlassian.com
Thu Aug 14 04:22:06 EDT 2008


The "order-by" setting of a collection is not observed in repeated fetches within the same session
--------------------------------------------------------------------------------------------------

                 Key: HHH-3431
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3431
             Project: Hibernate3
          Issue Type: Bug
    Affects Versions: 3.2.6
         Environment: PostgreSQL 8.2.7,  Hibernate 3.2.6
            Reporter: Andra Nedelcovici


When a one-to-many collection is declared having the "order-by" attribute set, the order of items is observed only the first time the collection is fetched from the database. If, during the same session, a new item is added to the collection and the collection's parent is re-fetched from the database by means of an HQL query, the collection order remains unmodified, although the newly added item should be moved in another position according to the declared SQL ordering.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list