[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-2766) many-to-one with property-ref run into an recursive issue
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Tue Oct 30 16:46:39 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved HHH-2766.
-----------------------------------
Resolution: Rejected
Use
@LazyToOne(LazyToOneOption.NO_PROXY)
and run the bytecode enhanced task to your classes. It should work.
> 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