I have a two persistent classes (say Student and Course) w/a many to many between them. Both classes have the same name for the primary key field ("OID"). Is there a way to specify assoc table column names in the many-to-many mappings?
The m-to-m mappings would be:
Code:
<bag name="Courses" table="StudentCourseAssoc">
<key column="OID"/>
<many-to-many class="Course" column="OID"/>
</bag>
I don't think this will work will it? From the docs, it appears that the column="..." tags specify the key columns of Student and Course. Is this true?
--john