Joey Vincent commented on Bug HBX-939

There seems to be an issue with the code in org.hibernate.cfg.JDBCBinder class method bindOneToMany.

Inside the if(manyToMany) block of the method, make following change to generate the mapping correctly.

// element.addColumn( fk.getColumn( 0 ) ); <<-- existing code
// added code
Iterator fkIterator = fk.getColumnIterator();
while( fkIterator.hasNext()){ element.addColumn((Column)fkIterator.next()); }

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira