[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1435) many-to-one lazy seems to be broken in 3.1.x

Will Hoover (JIRA) noreply at atlassian.com
Fri Sep 19 08:51:05 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31245#action_31245 ] 

Will Hoover commented on HHH-1435:
----------------------------------

This issue has been resolved, but we are still seeing it in 3.2.6

> many-to-one lazy seems to be broken in 3.1.x
> --------------------------------------------
>
>                 Key: HHH-1435
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1435
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1.2
>            Reporter: Frank Grimes
>            Assignee: Steve Ebersole
>            Priority: Critical
>             Fix For: 3.2.0.alpha2, 3.1.3
>
>
> When trying to upgrade from hibernate-3.0.5 to hibernate-3.1.1, my many-to-one lazy associations stopped working. (they're being fetched right away)
> I noticed that the test for that functionality in org.hibernate.test.instrument.InstrumentTest  was commented out at some point during 3.1 development.
> If I uncomment the assertion for the lazy loading of the many-to-one association, the test fails.
> The line in question is the following (line 160):
> //assertFalse(Hibernate.isPropertyInitialized(doc, "owner"));
> If this is/was a known issue, I didn't find any mention of it in either the forums or JIRA.
> It seems that both lazy="no-proxy" and lazy="proxy" fail on that test. (I tried modifying the mapping to see if maybe lazy="proxy" could be a possible migration path from the old lazy="true")
> Are there any plans to fix many-to-one lazy associations?
> FYI, I originally brought this issue up on the forums last week with no reply, hence the creation of this JIRA issue:
> http://forum.hibernate.org/viewtopic.php?t=954713
> Thanks.

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