[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2766) many-to-one with property-ref run into an recursive issue
René Fuchs (JIRA)
noreply at atlassian.com
Fri Aug 3 08:39:11 EDT 2007
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