Expert |
|
Joined: Tue Apr 25, 2006 12:04 pm Posts: 260
|
If you get the exception "Foreign key must have same number of columns as the referenced primary key", it means the number of columns defined either in <many-to-one> or <key-many-to-one> are not matching the columns defined in <set> element with bi-directional relation.
Also you have <key-many-to-one> and <many-to-one> define relation to the same class MyClass2 but with columns Column2 and Column3 respectively. Do you want to have two relations to the same class on different columns?
|
|