Hibernate version: hibernate2.0
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd
Here is what i've tried:
a) <composite-id
name="id"
class="edu.mnscu.housing.vo.RCCampusPK"
>
<key-many-to-one
name="campus"
class="edu.mnscu.housing.vo.Campus"
column="tech_id"
/>
<key-many-to-one
name="campus"
class="edu.mnscu.housing.vo.Campus"
column="rc_id"
/>
...
</composite-id>
I'm getting "Configuration problem: Foreign key (admin_rc_campus [tech_id])) must have same number of columns as the referenced primary key (cr_reporting [tech_id,rc_id])" . It seems to me the second id (ie. "rc_id") is not recognized.
b) if put two ids in one <key-many-to-one>,
<key-many-to-one
name="campus"
class="edu.mnscu.housing.vo.Campus"
column="tech_id,rc_id"
/>
I'm still seeing the disbelievable errors:
"Configuration problem: Foreign key (admin_rc_campus
[tech_id,rc_id])) must have same number of columns as the referenced primary key (cr_reporting
[tech_id,rc_id])" .
Is this a known issue or what should i do to get around this ?