[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4107) Many-to-one, one-to-many with lazy=true and combined primary key(@JoinColumns) leads to infinite look when doing session.load(.. or session.get(..

ulf thoresen (JIRA) noreply at atlassian.com
Tue Aug 25 03:58:15 EDT 2009


Many-to-one, one-to-many with lazy=true and combined primary key(@JoinColumns) leads to infinite look when doing session.load(.. or session.get(..
--------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HHH-4107
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4107
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.2.x
         Environment: Hibernate version 3.2.1.ga, Oracle 10.1.3, jdbc driver= 10.2.0.4
            Reporter: ulf thoresen
            Priority: Critical


I have  one-to-many from Class1with  fetch type lazy. 
In Class2 I have have a Embedded primary key with the many-to-one on the key. 

When I try to load og get Class1 I get a infinite loop that prints out a stack of selects. 
It all ends with a ava.lang.StackOverflowError. 

I will put in a example... 


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