i saw a lot of example on the web regarding to do a typical m-m relationship. but i've a problem.
assume i have 3 tables.
user -> uid, name
course -> cid, name
subscription -> uid, cid, status
______
if i'd use the normal
<set name="courses" table="subscription" inverse="true">
<key column="uid" />
<many-to-many column="cid"
class="xxx.Course" />
</set>
and
<set name="users" table="subscription">
<key column="cid" />
<many-to-many column="uid"
class="xxx.User" />
</set>
i can't retrieve the status field in the subscription table.
is there any solution?
|