[hibernate-dev] review of a patch for lazy loading of association with property-ref

Fischer, Lars Lars.Fischer at ibykus.de
Thu Mar 27 06:12:07 EDT 2008


Hello list,

I would like to use hibernate in a new project but I miss a feature: A
mapping like <many-to-one name="RE" column="RE_ID" property-ref="ID"
entity-name="RE" lazy="proxy" /> ignores the lazy loading. Looking into
the code I found as reason the usage of the property-ref attribute.

The project database schema bases on a legacy design which I can't
change. Because of that I can not avoid the usage of property-ref.

So I tried to get the lazy loading running with property-ref by
extending the hibernate core sources. With my changes it is now working
for my project, but I do not claim that this would be the best solution,
because I have only a rudimental knowledge of the hibernate internals.

Is it possible that someone of the experienced developers could take a
look on my changes and give me a feedback? I created a patch based on
hibernate core 3.2.6.ga. Should I upload it into JIRA or can I post it
into this list?

regards,
Lars 


------------------------------------------------------------------------------------------------------------
IBYKUS AG fur Informationstechnologie, Erfurt / HRB 108616 - D-Jena / Vorstand: Helmut C. Henkel, Dr. Lutz Richter /
Vorsitzender des Aufsichtsrates: Dr. Frieder Schauble





More information about the hibernate-dev mailing list