Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2008-08-14


Author LoginPost Reply
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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.