patches should go on the related case. /max
Hi, I've started working on http://opensource.atlassian.com/projects/hibernate/browse/HHH-1829 as we're using a legacy database and need to do a join that doesn't use a primary key. I have a working patch at the moment which seems to fix the issue(at least for our uses), although I'm not sure how 'nice' it is. When I looked through the code, I couldn't see the 'property-ref' attribute in the <key> tag being stored anywhere so I have added it to the KeyValue interface. This value is also stored in the AbstractEntityPersister class, similarly to rootTableKeyColumnNames. When the join is made, a check is performed to see if an alternative key should be used in the join. If there is no property-ref specified then the primary keys are used, otherwise the property-ref column is used. Also, is it normal to get 6 failures and 7 errors when running 'ant junitreport' (from trunk revision 10864)? Attached is an svn diff of the changes I have made. Thanks,
-- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss a division of Red Hat [EMAIL PROTECTED] _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev