From: Steve E. (JIRA) <no...@at...> - 2006-07-10 15:06:03
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1710?page=all ] Steve Ebersole reassigned HHH-1710: ----------------------------------- Assign To: Steve Ebersole > Allow set (or any collection) property-ref to property on joined-table to be join-fetched with HQL. > --------------------------------------------------------------------------------------------------- > > Key: HHH-1710 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1710 > Project: Hibernate3 > Type: Improvement > Components: core > Versions: 3.2.0 cr1 > Reporter: Maarten Winkels > Assignee: Steve Ebersole > Attachments: joinsetpropertyref.patch, joinsetpropertyref.zip > > > I have an entity that is split over two tables, with a <join ... /> in the mapping. This entity has a <set .../> which has a <key ... property-ref="aProperty"/>. The "aProperty" is mapped to the joined table. > When querying using HQL and join fetching the collection, Hibernate generates a faulty join statement. It atempts to join on the correct column (the one indicated in the property-ref) but on the wrong table (the primary table in stead of the joined table). > The attached testcase shows the situation. -- 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 |