[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7054) FetchType.Eager with FetchMode.JOIN leads to infinite loop.

Cavan Morris (JIRA) noreply at atlassian.com
Fri Feb 10 18:53:11 EST 2012


FetchType.Eager with FetchMode.JOIN leads to infinite loop.
-----------------------------------------------------------

                 Key: HHH-7054
                 URL: https://hibernate.onjira.com/browse/HHH-7054
             Project: Hibernate ORM
          Issue Type: Bug
          Components: core
    Affects Versions: 3.6.10, 3.5.6
         Environment: Fedora Linux 15 2.6.41.4-1.fc15.x86_64
Sun Java JDK 1.7.0_01-b08
Apache Maven 3.0.3
MySQL 5.5.18
            Reporter: Cavan Morris
         Attachments: TestHibernate.tar.gz

A bidirectional, OneToMany User/UserRole relationship is created with FetchType.EAGER and FetchMode.JOIN.  Pulling the User object from the database results in an infinite loop of identical SQL statements being run. The process appears to seg fault once memory has been exhausted.

Changing FetchMode to SELECT solves the issue.

Please extract the attached file and read the README.txt file for information on running the test.

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