[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7320) Fetch join multiple element collections

Christian Beikov (JIRA) noreply at atlassian.com
Tue May 15 15:49:09 EDT 2012


Fetch join multiple element collections
---------------------------------------

                 Key: HHH-7320
                 URL: https://hibernate.onjira.com/browse/HHH-7320
             Project: Hibernate ORM
          Issue Type: Bug
          Components: core, query-hql
    Affects Versions: 4.1.3
         Environment: All Hibernate Versions have this problem, it is unrelated to a database, it's kind of HQL specific.
            Reporter: Christian Beikov
         Attachments: TestMultipleFetchJoinElementCollections.zip

In the attachment you will see a sample maven project with a JUnit Test that will try to create a query that should actually work.
The problem is, that if the driving relation A has an element collection, that should be fetched,
but also a sub relation B has an element collection, that should also be fetched, the following error message will be printed:

org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list

I am not sure if that is supposed to work, but in my opinion it should!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list