[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2766) many-to-one with property-ref run into an recursive issue

Ilhan Nisamedtinov (JIRA) noreply at atlassian.com
Tue Oct 30 02:52:39 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28630 ] 

Ilhan Nisamedtinov commented on HHH-2766:
-----------------------------------------

Seems I have described same issue (with 3.2.5) in forum:

http://forum.hibernate.org/viewtopic.php?t=980613&highlight=


> many-to-one with property-ref run into an recursive issue
> ---------------------------------------------------------
>
>                 Key: HHH-2766
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2766
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.5
>         Environment: Hibernate 3.2.5, Informix 10
>            Reporter: René Fuchs
>
> With many-to-one and property-ref, hibernate resolve always the whole referenced entity. 
> So we have alway an eager issue. If the resolved entity includes one or more other references to non primary keys,
> these entities will be also resolved and so on.
> In a big legacy database, if I read only one entity, I get 100 selects or a very very long joined sql (fetch="join").
> I think the problem ist located in:
> org.hibernate.type.EntityType
> public Object resolve(Object obj, SessionImplementor sessionimplementor, Object obj1)

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