[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6153) FetchMode.JOIN does not work with SortedMap

Facundo Chambó (JIRA) noreply at atlassian.com
Sat Apr 23 11:32:00 EDT 2011


FetchMode.JOIN does not work with SortedMap
-------------------------------------------

                 Key: HHH-6153
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6153
             Project: Hibernate Core
          Issue Type: Bug
          Components: query-criteria
    Affects Versions: 3.2.7
         Environment: DB Oracle 11g
            Reporter: Facundo Chambó
         Attachments: hibernate-test.tar.gz

I'm using a SortedMap<B,C> with an Entity as key. I use setFetchMode("map",FetchMode.JOIN) and setFetchMode("map.b",FetchMode.JOIN) in the criteria. When the query is executed, B#compareTo(B arg0) method is invoked repeatedly to build the resulting SortedMap. The problem is that all simple attributes of B are not initialized, so the compareTo fails.

Check the test-case and make any question you have

-- 
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